mirror of
https://github.com/mue/mue.git
synced 2026-07-26 02:01:19 +02:00
fix: dependency issue
This commit is contained in:
@@ -102,17 +102,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
sourcemap: !isProd,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
if (id.includes('@mui')) {
|
||||
return 'vendor_mui';
|
||||
}
|
||||
if (id.includes('react') || id.includes('react-dom')) {
|
||||
return 'vendor_react';
|
||||
}
|
||||
return 'vendor';
|
||||
}
|
||||
},
|
||||
manualChunks: undefined, // Let Vite handle chunking automatically to avoid circular dependency issues
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user