diff --git a/web/vite.config.js b/web/vite.config.js index eec5c1b..0e39478 100644 --- a/web/vite.config.js +++ b/web/vite.config.js @@ -14,10 +14,15 @@ export default defineConfig({ outDir: 'dist', assetsDir: 'assets', emptyOutDir: true, - rollupOptions: { + rolldownOptions: { output: { - manualChunks: { - 'chart': ['chart.js'] + codeSplitting: { + groups: [ + { + name: 'chart', + test: /node_modules\/(chart\.js|@kurkle\/color)\// + } + ] } } }