Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 20, 2024
1 parent ac4467c commit d543f1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default ({ mode }: { mode: string }) => {
rollupOptions: {
treeshake: true, // Enable Tree Shaking: Ensure unused code is removed by leveraging ES modules and proper imports
output: {
// Chunk splitting strategy
manualChunks: {
vendor: ['react', 'react-dom'],
router: ['react-router-dom'],
Expand All @@ -84,6 +83,7 @@ export default ({ mode }: { mode: string }) => {
},
assetsInlineLimit: 8192, // This reduces the number of small chunk files
},
// Optimize dependencies
optimizeDeps: {
include: [
'react',
Expand Down
2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default ({ mode }: { mode: string }) => {
rollupOptions: {
treeshake: true, // Enable Tree Shaking: Ensure unused code is removed by leveraging ES modules and proper imports
output: {
// Chunk splitting strategy
manualChunks: {
vendor: ['react', 'react-dom'],
router: ['react-router-dom'],
Expand All @@ -84,6 +83,7 @@ export default ({ mode }: { mode: string }) => {
},
assetsInlineLimit: 8192, // This reduces the number of small chunk files
},
// Optimize dependencies
optimizeDeps: {
include: [
'react',
Expand Down

0 comments on commit d543f1b

Please sign in to comment.