Reorder imports
This commit is contained in:
@@ -18,17 +18,17 @@ export default defineConfig({
|
||||
|
||||
console.log('ID', cleanID);
|
||||
if (id.includes('node_modules')) {
|
||||
if (cleanID.includes('react')) {
|
||||
return 'vendor_A_react';
|
||||
}
|
||||
if (cleanID.includes('@mui/') || cleanID.includes('@emotion')) {
|
||||
return 'vendor_mui';
|
||||
}
|
||||
if (cleanID.includes('@tanstack')) {
|
||||
return 'vendor_tanstack';
|
||||
}
|
||||
if (cleanID.includes('react')) {
|
||||
return 'vendor_react';
|
||||
}
|
||||
|
||||
return 'vendor'; // all other package goes here
|
||||
return 'vendor_X'; // all other package goes here
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user