Skip to content

Commit 81de06a

Browse files
committed
chore: Minor formatting corrections
1 parent 12e7c5d commit 81de06a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/plugins/prerender-plugin.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ export function prerenderPlugin({ prerenderScript, renderTarget, additionalPrere
8181
const getPrerenderScriptFromHTML = async (input) => {
8282
// prettier-ignore
8383
const entryHtml =
84-
typeof input === "string"
85-
? input
86-
: Array.isArray(input)
87-
? input.find(i => /html$/.test(i))
88-
: Object.values(input).find(i => /html$/.test(i));
84+
typeof input === "string"
85+
? input
86+
: Array.isArray(input)
87+
? input.find(i => /html$/.test(i))
88+
: Object.values(input).find(i => /html$/.test(i));
8989

9090
if (!entryHtml) throw new Error('Unable to detect entry HTML');
9191

@@ -145,11 +145,11 @@ export function prerenderPlugin({ prerenderScript, renderTarget, additionalPrere
145145

146146
// prettier-ignore
147147
opts.input =
148-
typeof opts.input === "string"
149-
? [opts.input, prerenderScript]
150-
: Array.isArray(opts.input)
151-
? [...opts.input, prerenderScript]
152-
: { ...opts.input, prerenderEntry: prerenderScript };
148+
typeof opts.input === "string"
149+
? [opts.input, prerenderScript]
150+
: Array.isArray(opts.input)
151+
? [...opts.input, prerenderScript]
152+
: { ...opts.input, prerenderEntry: prerenderScript };
153153
opts.preserveEntrySignatures = 'allow-extension';
154154
},
155155
// Injects window checks into Vite's preload helper & modulepreload polyfill

0 commit comments

Comments
 (0)