Skip to content

Commit

Permalink
chore: update vite.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Apr 25, 2024
1 parent d5b0e6c commit d58117b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ export default defineConfig(({ _, mode }) => {
rollupOptions: {
output: {
manualChunks(id) {
// if (id.includes("node_modules")) {
// return "vendor";
if (id.includes('node_modules'))
return 'vendor'

// if (id.includes('node_modules')) {
// if (id.includes('@codemirror'))
// return 'codemirror'
// else if (id.includes('@antv'))
// return 'antv'
// else
// return 'vendor'
// }
if (id.includes('node_modules')) {
if (id.includes('@codemirror'))
return 'codemirror'
else if (id.includes('@antv'))
return 'antv'
else
return 'vendor'
}
},
},
},
Expand Down

0 comments on commit d58117b

Please sign in to comment.