Skip to content

Commit faaefbf

Browse files
committed
fix: try to fix production chunking problem
1 parent d46e6bd commit faaefbf

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

frontend/vite.config.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,10 @@ export default defineConfig({
3838
rollupOptions: {
3939
output: {
4040
manualChunks: {
41-
// React core
41+
// React core (no external deps, safe to manually chunk)
4242
'react-vendor': ['react', 'react-dom', 'react-router'],
43-
// Heavy data/query libraries
44-
'query-vendor': ['@tanstack/react-query', '@tanstack/react-virtual'],
45-
// Supabase
43+
// Standalone libraries with no React dependency (safe to manually chunk)
4644
'supabase-vendor': ['@supabase/supabase-js'],
47-
// i18n
48-
'i18n-vendor': ['i18next', 'react-i18next', 'i18next-browser-languagedetector', 'i18next-http-backend'],
49-
// Charts (only loaded on overview)
50-
'charts-vendor': ['recharts'],
51-
// Heavy utility libraries
5245
'tensorflow-vendor': ['@tensorflow/tfjs'],
5346
'xlsx-vendor': ['xlsx'],
5447
},

0 commit comments

Comments
 (0)