Skip to content

Commit 114b500

Browse files
committed
build: remove manualChunks config
1 parent 9a7062f commit 114b500

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

vite.config.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@ export default defineConfig({
4646
build: {
4747
target: 'esnext',
4848
minify: 'terser',
49-
rollupOptions: {
50-
output: {
51-
manualChunks(id) {
52-
if (id.includes('node_modules')) {
53-
// 让每个插件都打包成独立的文件
54-
return id.toString().split('node_modules/')[1].split('/')[0].toString();
55-
}
56-
return null;
57-
},
58-
},
59-
},
49+
// rollupOptions: {
50+
// output: {
51+
// manualChunks(id) {
52+
// if (id.includes('node_modules')) {
53+
// // 让每个插件都打包成独立的文件
54+
// return id.toString().split('node_modules/')[1].split('/')[0].toString();
55+
// }
56+
// return null;
57+
// },
58+
// },
59+
// },
6060
terserOptions: {
6161
compress: {
6262
// 生产环境移除console

0 commit comments

Comments
 (0)