Merge remote-tracking branch 'origin/dev-v2' into dev-v2

This commit is contained in:
wisonic 2024-09-03 15:28:56 +08:00
commit 34e1af32c6
2 changed files with 1 additions and 8 deletions

View File

@ -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'
}
}
}

View File

@ -28,7 +28,6 @@ export const useI18n = (
} => {
const normalFn = {
t: (key: string) => {
console.log('window.de-i18nDe', key, namespace)
return getKey(namespace, key)
}
}