Skip to content

Commit 41fdd96

Browse files
committed
fix ssr style css handling
1 parent a7fe0ae commit 41fdd96

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { manifest } from "solid-start:server-manifest"
21
import { join } from "pathe";
2+
import { manifest } from "solid-start:server-manifest";
33

44
export 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
}

0 commit comments

Comments
 (0)