Skip to content

Commit 9b0800f

Browse files
author
Ahsan Hassan
committed
Remove manual chunks
1 parent 69c1c17 commit 9b0800f

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

vite.config.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,7 @@ export default defineConfig(({ mode }) => ({
4040
build: {
4141
outDir: './build',
4242
target: 'esnext',
43-
rollupOptions: {
44-
output: {
45-
manualChunks: (id) => {
46-
if (id.includes('node_modules')) {
47-
if (id.includes('react')) {
48-
return 'vendor__react';
49-
}
50-
if (id.includes('firebase')) {
51-
return 'vendor__firebase';
52-
}
53-
return 'vendor';
54-
}
55-
},
56-
},
57-
},
43+
rollupOptions: {},
5844
},
5945
plugins: [
6046
mode === 'development' && eslint(),

0 commit comments

Comments
 (0)