From 06993d21e93d58d458ca89c28121279968cc44ab Mon Sep 17 00:00:00 2001 From: Jinx <61403813+Jokergga@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:35:44 +0800 Subject: [PATCH] fix(@umijs/bundler-webpack): inlineLimit config being ineffective when set to 0 (#12768) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 张建华(zhangjh) --- packages/bundler-webpack/src/config/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bundler-webpack/src/config/config.ts b/packages/bundler-webpack/src/config/config.ts index 949b175e2f3e..6d22a6530b77 100644 --- a/packages/bundler-webpack/src/config/config.ts +++ b/packages/bundler-webpack/src/config/config.ts @@ -67,7 +67,7 @@ export async function getConfig(opts: IOpts): Promise { const config = new Config(); userConfig.targets ||= DEFAULT_BROWSER_TARGETS; // normalize inline limit - userConfig.inlineLimit = parseInt(userConfig.inlineLimit || '10000', 10); + userConfig.inlineLimit = parseInt(userConfig.inlineLimit ?? '10000', 10); const useHash = !!(opts.hash || (userConfig.hash && !isDev)); const applyOpts = { name: opts.name,