From 82c570c2c5156423a9c81c9e3882c0e25266305b Mon Sep 17 00:00:00 2001 From: gimmyhehe <975402925@qq.com> Date: Fri, 5 Jan 2024 16:40:37 +0800 Subject: [PATCH] build(internal): fix inline chunk error (#1256) --- internals/cli/src/commands/build/build-ui.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internals/cli/src/commands/build/build-ui.ts b/internals/cli/src/commands/build/build-ui.ts index 7da80b7ed..e28cf64bb 100644 --- a/internals/cli/src/commands/build/build-ui.ts +++ b/internals/cli/src/commands/build/build-ui.ts @@ -76,7 +76,7 @@ export const getVuePlugins = (vueVersion: string) => { return pluginMap[vueVersion]() || [] } -export const ns = (ver) => ({ '2': '2', '2.7': '2', '3': '3' }[ver] || '') +export const ns = (ver) => ({ '2': '2', '2.7': '2', '3': '3' })[ver] || '' export interface BaseConfig { vueVersion: string @@ -286,7 +286,8 @@ async function batchBuildAll({ vueVersion, tasks, formats, message, emptyOutDir, }, output: { strict: false, - manualChunks: {} + manualChunks: {}, + experimentalMinChunkSize: 5 * 1024 * 1024 } }, lib: {