File tree 2 files changed +4
-5
lines changed
packages/bundler-webpack/src/build
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export const renderPagePrefetchLinks = ({
32
32
if ( shouldPrefetch !== true && ! shouldPrefetch ( file , type ) ) {
33
33
return ''
34
34
}
35
- return `<link rel="prefetch" href="${ app . options . base } ${ file } " as="${ type } " / >`
35
+ return `<link rel="prefetch" href="${ app . options . base } ${ file } " as="${ type } ">`
36
36
} )
37
37
. join ( '' )
38
38
}
Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ export const renderPageStyles = ({
17
17
// notice here we put async CSS files after initial CSS files
18
18
[ ...initialFilesMeta , ...pageClientFilesMeta ]
19
19
. filter ( ( { type } ) => type === 'style' )
20
- . flatMap ( ( { file } ) => [
21
- `<link rel="preload" href="${ app . options . base } ${ file } " as="style" />` ,
22
- `<link rel="stylesheet" href="${ app . options . base } ${ file } " />` ,
23
- ] )
20
+ . map (
21
+ ( { file } ) => `<link rel="stylesheet" href="${ app . options . base } ${ file } ">`
22
+ )
24
23
. join ( '' )
You can’t perform that action at this time.
0 commit comments