fix: 切分依赖
This commit is contained in:
1 parent
c45a8a41cf
commit
d530e49775
1 file changed
+12
-1
@@ -16,4 +16,15 @@ export default defineConfig({
|
||||
'/api': 'http://localhost:6099',
|
||||
},
|
||||
},
|
||||
});
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user