React load first, mui then
This commit is contained in:
@@ -13,12 +13,15 @@ export default defineConfig({
|
||||
output: {
|
||||
manualChunks: (id) => {
|
||||
if (id.includes('node_modules')) {
|
||||
if (id.includes('@mui/') || id.includes('react')) {
|
||||
return 'vendor_base';
|
||||
if (id.includes('@mui/') || id.includes('@emotion')) {
|
||||
return 'vendor_mui';
|
||||
}
|
||||
if (id.includes('@tanstack')) {
|
||||
return 'vendor_tanstack';
|
||||
}
|
||||
if (id.includes('react')) {
|
||||
return 'vendor_1_react';
|
||||
}
|
||||
|
||||
return 'vendor'; // all other package goes here
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user