reduce installer size 50% and app bundle size by 30%

This commit is contained in:
Siddharth
2025-11-23 16:49:53 -07:00
parent 0d5c4529d1
commit b181546ad3
15 changed files with 113 additions and 43 deletions
+21
View File
@@ -39,4 +39,25 @@ export default defineConfig({
'@': path.resolve(__dirname, 'src'),
},
},
build: {
target: 'esnext',
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log', 'console.debug']
}
},
rollupOptions: {
output: {
manualChunks: {
'pixi': ['pixi.js'],
'react-vendor': ['react', 'react-dom'],
'video-processing': ['mediabunny', 'mp4box', '@fix-webm-duration/fix']
}
}
},
chunkSizeWarningLimit: 1000
}
})