Skip to content

Commit 248528f

Browse files
committed
unsplit bundle
1 parent 166e81b commit 248528f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ export default defineConfig({
1616
output: {
1717
manualChunks: (id, { getModuleInfo }) => {
1818
if (id.includes("node_modules")) {
19-
if ((getModuleInfo(id)?.code?.length ?? 0) < 1000) {
20-
return "vendor"
19+
if (id.includes("/svelte/")) {
20+
return "svelte"
2121
}
22-
23-
return moduleNameRegex.exec(id)?.[1] ?? "vendor"
2422
}
2523
},
2624
},

0 commit comments

Comments
 (0)