@@ -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 => / h t m l $ / . test ( i ) )
88- : Object . values ( input ) . find ( i => / h t m l $ / . test ( i ) ) ;
84+ typeof input === "string"
85+ ? input
86+ : Array . isArray ( input )
87+ ? input . find ( i => / h t m l $ / . test ( i ) )
88+ : Object . values ( input ) . find ( i => / h t m l $ / . 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