From 2ab47aa21a95bc2ecf811dd826ae64e87f968ead Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 3 Sep 2024 15:09:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(xpack):=20=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/config/distributed.ts | 8 +------- core/core-frontend/src/hooks/web/useI18n.ts | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/core/core-frontend/config/distributed.ts b/core/core-frontend/config/distributed.ts index 842ee5f97b..f915965e70 100644 --- a/core/core-frontend/config/distributed.ts +++ b/core/core-frontend/config/distributed.ts @@ -19,15 +19,9 @@ export default { chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`, assetFileNames: `assets/[ext]/[name]-${pkg.version}-${pkg.name}.[ext]`, entryFileNames: `js/[name]-${pkg.version}-${pkg.name}.js`, - manualChunks(id: string, { getModuleInfo }) { + manualChunks(id: string) { if (id.includes('node_modules')) { return id.toString().split('node_modules/')[1].split('/')[0].toString() - } else if ( - id.includes('.vue') && - ['App.vue', 'ConfigGlobal.vue', 'ExportExcel.vue'].every(ele => !id.includes(ele)) && - getModuleInfo(id).code.length < 10000 - ) { - return 'vendor' } } } diff --git a/core/core-frontend/src/hooks/web/useI18n.ts b/core/core-frontend/src/hooks/web/useI18n.ts index 816afd0963..8e682b6f72 100644 --- a/core/core-frontend/src/hooks/web/useI18n.ts +++ b/core/core-frontend/src/hooks/web/useI18n.ts @@ -28,7 +28,6 @@ export const useI18n = ( } => { const normalFn = { t: (key: string) => { - console.log('window.de-i18nDe', key, namespace) return getKey(namespace, key) } }