File tree Expand file tree Collapse file tree
packages/start/src/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ async function findModuleDependencies(
6363// Vite doesn't expose these so we just copy the list for now
6464// https://github.com/vitejs/vite/blob/d6bde8b03d433778aaed62afc2be0630c8131908/packages/vite/src/node/constants.ts#L49C23-L50
6565const cssFileRegExp =
66- / \. ( c s s | l e s s | s a s s | s c s s | s t y l | s t y l u s | p c s s | p o s t c s s | s s s ) (?: $ | \? ) / ;
66+ / \. ( c s s | l e s s | s a s s | s c s s | s t y l | s t y l u s | p c s s | p o s t c s s | s s s ) $ / ;
6767// https://github.com/vitejs/vite/blob/d6bde8b03d433778aaed62afc2be0630c8131908/packages/vite/src/node/plugins/css.ts#L160
6868const cssModulesRegExp = new RegExp ( `\\.module${ cssFileRegExp . source } ` ) ;
6969
Original file line number Diff line number Diff line change 11import { clientViteManifest } from "solid-start:client-vite-manifest" ;
22import { join } from "pathe" ;
3+ import { Manifest } from "vite" ;
34import type { Asset } from "../renderAsset.tsx" ;
45
56// Only reads from client manifest atm, might need server support for islands
@@ -70,7 +71,7 @@ const entryId = import.meta.env.START_CLIENT_ENTRY.slice(2);
7071let entryImports : string [ ] | undefined = undefined ;
7172
7273function findAssetsInViteManifest (
73- manifest : any ,
74+ manifest : Manifest ,
7475 id : string ,
7576 assetMap = new Map ( ) ,
7677 stack : string [ ] = [ ] ,
@@ -99,10 +100,7 @@ function findAssetsInViteManifest(
99100 // Chunks (e.g. routes) that import something from entry, should not render entry css redundantly
100101 const excludeEntryImports = id !== entryId ;
101102
102- const assets = [
103- ...( chunk . assets ?. filter ( Boolean ) || [ ] ) ,
104- ...( chunk . css ?. filter ( Boolean ) || [ ] ) ,
105- ] ;
103+ const assets = chunk . css ?. filter ( Boolean ) || [ ] ;
106104 if ( chunk . imports ) {
107105 stack . push ( id ) ;
108106 for ( let i = 0 , l = chunk . imports . length ; i < l ; i ++ ) {
You can’t perform that action at this time.
0 commit comments