update vite

This commit is contained in:
MuslemRahimi 2024-07-12 16:07:08 +02:00
parent e8365afb23
commit 4f9a271fe3
2 changed files with 11 additions and 4 deletions

View File

@ -195,8 +195,6 @@ $: {
} }
console.log(earningsCalendar)
} }
} }

View File

@ -12,8 +12,17 @@ const config = {
target: 'esnext', target: 'esnext',
// Enable minification and other optimizations for production builds // Enable minification and other optimizations for production builds
minify: true, minify: true,
// Enable code splitting to reduce initial loading time rollupOptions: {
chunkSizeWarningLimit: 1500, // Adjust as per your project size output: {
manualChunks: (id) => {
if (id.includes('node_modules')) {
return 'vendor';
}
},
},
// Enable tree shaking
treeshake: true,
},
}, },
optimizeDeps: { optimizeDeps: {