Skip to content

Commit

Permalink
bundle split
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Nov 9, 2024
1 parent f512b76 commit e9f29d1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@ export default defineConfig({
optimizeDeps: {
include: ['chartjs-adapter-date-fns'],
},
build: {
rollupOptions: {
output: {
manualChunks: (id) => {
if (id.includes('node_modules')) {
return `vendor`;
}
},
},
},
},
});

0 comments on commit e9f29d1

Please sign in to comment.