mirror of
https://github.com/mue/mue.git
synced 2026-07-27 18:51:05 +02:00
fix: dependency issue
This commit is contained in:
@@ -102,17 +102,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
sourcemap: !isProd,
|
sourcemap: !isProd,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
manualChunks(id) {
|
manualChunks: undefined, // Let Vite handle chunking automatically to avoid circular dependency issues
|
||||||
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';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user