From 3dca100349c9c39284e9cd868d00659156c534c2 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Thu, 18 Dec 2025 15:00:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E6=80=A7=E6=9C=80=E5=B0=8F=E5=88=86=E5=9D=97=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 experimentalMinChunkSize 配置项,设置为 20KB 以优化打包时的分块策略 --- internal/vite-config/src/config/application.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/vite-config/src/config/application.ts b/internal/vite-config/src/config/application.ts index a5d33c60..daef5555 100644 --- a/internal/vite-config/src/config/application.ts +++ b/internal/vite-config/src/config/application.ts @@ -63,6 +63,7 @@ function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) { assetFileNames: '[ext]/[name]-[hash].[ext]', chunkFileNames: 'js/[name]-[hash].js', entryFileNames: 'jse/index-[name]-[hash].js', + experimentalMinChunkSize: 20 * 1024, }, }, target: 'es2015',