Skip to content

Commit

Permalink
package locales/helper.ts to commons.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Jan 7, 2025
1 parent cb142a6 commit 5dfac0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,16 @@ export default defineConfig(() => {
return 'vendor-desktop';
} else if (/[\\/]node_modules[\\/]/i.test(id)) {
return 'vendor-common';
} else if (/[\\/]src[\\/]locales[\\/]/i.test(id)) {
return 'locales';
} else if (/[\\/]src[\\/](core|consts|models|stores)[\\/]/i.test(id)) {
return 'common';
} else if (/[\\/]src[\\/]lib[\\/](map[\\/]|ui[\\/]common|[a-zA-Z0-9-_]+\.(js|ts))/i.test(id)) {
return 'common';
} else if (/[\\/]src[\\/]components[\\/](base|common)[\\/]/i.test(id)) {
return 'common';
} else if (/[\\/]src[\\/]locales[\\/]helper\.(js|ts)/i.test(id)) {
return 'common';
} else if (/[\\/]src[\\/]locales[\\/]/i.test(id)) {
return 'locales';
} else {
return null;
}
Expand Down

0 comments on commit 5dfac0c

Please sign in to comment.