Skip to content

Commit

Permalink
Remove manual chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahsan Hassan committed Oct 19, 2024
1 parent 69c1c17 commit 9b0800f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,7 @@ export default defineConfig(({ mode }) => ({
build: {
outDir: './build',
target: 'esnext',
rollupOptions: {
output: {
manualChunks: (id) => {
if (id.includes('node_modules')) {
if (id.includes('react')) {
return 'vendor__react';
}
if (id.includes('firebase')) {
return 'vendor__firebase';
}
return 'vendor';
}
},
},
},
rollupOptions: {},
},
plugins: [
mode === 'development' && eslint(),
Expand Down

0 comments on commit 9b0800f

Please sign in to comment.