perf: expand manual chunks — add react/router, calendar, xyflow vendor splits
index bundle: 1565kB → 1085kB (under 1500kB target) Chunks: vendor-react 163kB, vendor-calendar 274kB, vendor-xyflow 181kB added.
This commit is contained in:
parent
aca4d045b2
commit
2e3cb134d1
@ -120,9 +120,14 @@ export default defineConfig(({ mode }) => {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'vendor-tldraw': ['@tldraw/tldraw', '@tldraw/state', '@tldraw/store'],
|
||||
'vendor-mui': ['@mui/material', '@mui/icons-material', '@emotion/react', '@emotion/styled'],
|
||||
'vendor-react': ['react', 'react-dom', 'react-router-dom'],
|
||||
'vendor-tldraw': ['@tldraw/tldraw', '@tldraw/state', '@tldraw/store'],
|
||||
'vendor-mui': ['@mui/material', '@mui/icons-material', '@emotion/react', '@emotion/styled'],
|
||||
'vendor-supabase': ['@supabase/supabase-js'],
|
||||
'vendor-calendar': ['@fullcalendar/core', '@fullcalendar/daygrid', '@fullcalendar/interaction',
|
||||
'@fullcalendar/list', '@fullcalendar/multimonth', '@fullcalendar/react',
|
||||
'@fullcalendar/timegrid'],
|
||||
'vendor-xyflow': ['@xyflow/react'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user