Skip to content

Commit

Permalink
tweak: extract all packages into separate bundle file
Browse files Browse the repository at this point in the history
  • Loading branch information
brusherru committed Sep 23, 2024
1 parent daade79 commit f3c640f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,16 @@ export default defineConfig({
}
})
],
build: {
rollupOptions: {
output: {
manualChunks: function manualChunks(id) {
// Bundle all third-party code aside
if (id.includes('node_modules')) {
return 'vendor';
}
}
},
},
},
});

0 comments on commit f3c640f

Please sign in to comment.