mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-28 01:37:56 +03:00
add bundle splitting (manual)
This commit is contained in:
@@ -10,4 +10,15 @@ export default defineConfig({
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id: string) {
|
||||
if (id.includes('react')) {
|
||||
return 'react';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user