Apply manual splitting to reduce the bundle size

This commit is contained in:
Arnaud 2024-10-24 14:57:52 +02:00
parent a588c3a8cf
commit fecc7a55e3
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -12,6 +12,13 @@ export default defineConfig({
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: {
echarts: ['echarts'],
"dotted-map": ["dotted-map"],
"@sentry/react": ["@sentry/react"],
}
},
onwarn(warning, defaultHandler) {
if (warning.code === "SOURCEMAP_ERROR") {
return;