File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ export function manifest(start: SolidStartOptions): PluginOption {
6969 target === "ssr" ,
7070 ) ;
7171
72- const cssAssets = [ ... styles ] . map ( ( url ) => ( {
73- tag : "link" ,
72+ const cssAssets = Object . entries ( styles ) . map ( ( [ id , url ] ) => ( {
73+ tag : "link" ,
7474 attrs : {
7575 rel : "stylesheet" ,
7676 href : url ,
77- "data-vite-dev-id" : url ,
77+ "data-vite-dev-id" : id ,
7878 "data-vite-ref" : "0" ,
7979 } ,
8080 } ) ) ;
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export async function findStylesInModuleGraph(
162162
163163 const dependencies = await findFilesDepedencies ( vite , [ absolute ] , ssr ) ;
164164
165- const styles = new Set < string > ( ) ;
165+ const styles : Record < string , string > = { } ;
166166
167167 for ( const dep of dependencies ) {
168168 if ( isCssFile ( dep . url ) ) {
@@ -171,7 +171,7 @@ export async function findStylesInModuleGraph(
171171 depURL = injectQuery ( dep . url , "inline" ) ;
172172 }
173173
174- styles . add ( dep . url ) ;
174+ if ( dep . id ) styles [ dep . id ] = ( dep . url ) ;
175175 }
176176 }
177177
You can’t perform that action at this time.
0 commit comments