From 4c301adc156ba7aa70592ccdf2fceedadf2fa05c Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 3 Sep 2024 14:30:55 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=B0=8F=E6=96=87=E4=BB=B6=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/config/distributed.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/core-frontend/config/distributed.ts b/core/core-frontend/config/distributed.ts index 453ae3f25b..f915965e70 100644 --- a/core/core-frontend/config/distributed.ts +++ b/core/core-frontend/config/distributed.ts @@ -19,11 +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') && getModuleInfo(id).code.length < 10000) { - return 'vendor' } } }