File tree Expand file tree Collapse file tree
packages/start/src/server/manifest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { manifest } from "solid-start:server-manifest"
21import { join } from "pathe" ;
2+ import { manifest } from "solid-start:server-manifest" ;
33
44export function getSsrProdManifest ( ) {
55 const viteManifest = manifest . clientViteManifest ;
@@ -8,22 +8,22 @@ export function getSsrProdManifest() {
88 return import ( /* @vite -ignore */ id ) ;
99 } ,
1010 async getAssets ( id ) {
11- return [ ]
11+ return manifest . clientManifestData [ id ] ?. assets ?? [ ] ;
1212 } ,
1313 async json ( ) {
1414 const json : Record < string , any > = { } ;
1515
1616 const entryKeys = Object . keys ( viteManifest )
17- . filter ( ( id ) => viteManifest [ id ] ?. isEntry )
18- . map ( ( id ) => id ) ;
17+ . filter ( id => viteManifest [ id ] ?. isEntry )
18+ . map ( id => id ) ;
1919
2020 for ( const entryKey of entryKeys ) {
2121 json [ entryKey ] = {
2222 output : join ( viteManifest [ entryKey ] ! . file )
23- }
23+ } ;
2424 }
2525
26- return json
26+ return json ;
2727 }
2828 } satisfies StartManifest & { json ( ) : Promise < Record < string , any > > } ;
2929}
You can’t perform that action at this time.
0 commit comments