Skip to content

Commit 1996a9b

Browse files
committed
feat: extract dependencies into manual chunk using rollupOptions
1 parent 8429348 commit 1996a9b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vite-project/vite.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ export default defineConfig({
1414
},
1515
build: {
1616
minify: "esbuild",
17+
rollupOptions:{
18+
output:{
19+
manualChunks(id) {
20+
if (id.includes('node_modules')) {
21+
return "vers"
22+
}
23+
}
24+
}
25+
}
26+
},
27+
environments: {
28+
1729
},
1830
resolve: {
1931
alias: {

0 commit comments

Comments
 (0)