Mui + react
This commit is contained in:
1 parent
922aea543d
commit
96fa86d53a
10 files changed
+180
-187
No files matched your search
@@ -13,15 +13,12 @@ export default defineConfig({
|
||||
output: {
|
||||
manualChunks: (id) => {
|
||||
if (id.includes('node_modules')) {
|
||||
if (id.includes('@mui/')) {
|
||||
return 'vendor_mui';
|
||||
if (id.includes('@mui/') || id.includes('react')) {
|
||||
return 'vendor_base';
|
||||
}
|
||||
if (id.includes('@tanstack')) {
|
||||
return 'vendor_tanstack';
|
||||
}
|
||||
if (id.includes('react')) {
|
||||
return 'vendor_react';
|
||||
}
|
||||
|
||||
return 'vendor'; // all other package goes here
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user