Skip to content

Commit 7bdee59

Browse files
committed
only check source for vite 7 manifest
1 parent 6985e15 commit 7bdee59

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/start/src/config/manifest.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,7 @@ export function manifest(start: SolidStartOptions): PluginOption {
5656
const manifestKey = Object.keys(globalThis.START_CLIENT_BUNDLE).find(k => k.endsWith("manifest.json"));
5757
if (manifestKey && viteMajor < 8) {
5858
const manifestAsset = globalThis.START_CLIENT_BUNDLE[manifestKey] as any;
59-
if (manifestAsset.type === "asset") {
60-
rawManifest = manifestAsset.source as string;
61-
} else if (manifestAsset.type === "chunk") {
62-
rawManifest = manifestAsset.code as string;
63-
} else if (typeof manifestAsset === "string") {
64-
rawManifest = manifestAsset;
65-
} else {
66-
rawManifest = manifestAsset.source || manifestAsset.code || JSON.stringify(manifestAsset);
67-
}
59+
rawManifest = manifestAsset.source as string;
6860
} else {
6961
const fs = await import("node:fs");
7062
const path = await import("node:path");

0 commit comments

Comments
 (0)