Skip to content

Commit

Permalink
chore: split chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Flower-F committed May 17, 2024
1 parent b1d4ef0 commit b88795d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export default defineConfig(({ mode }) => {
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom'],
'lib-react': ['react', 'react-dom', 'scheduler'],
'lib-router': ['react-router', 'react-router-dom'],
},
},
},
Expand Down

0 comments on commit b88795d

Please sign in to comment.