Skip to content

Commit

Permalink
perf: manual chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Nov 27, 2024
1 parent 5e6158b commit ee9419c
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 @@ -24,4 +24,15 @@ export default defineConfig({
},
},
},
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString();
}
}
}
}
}
});

0 comments on commit ee9419c

Please sign in to comment.