We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166e81b commit 248528fCopy full SHA for 248528f
vite.config.ts
@@ -16,11 +16,9 @@ export default defineConfig({
16
output: {
17
manualChunks: (id, { getModuleInfo }) => {
18
if (id.includes("node_modules")) {
19
- if ((getModuleInfo(id)?.code?.length ?? 0) < 1000) {
20
- return "vendor"
+ if (id.includes("/svelte/")) {
+ return "svelte"
21
}
22
-
23
- return moduleNameRegex.exec(id)?.[1] ?? "vendor"
24
25
},
26
0 commit comments