From 0b5ec859af4fb5802166e8d0ae1b40a3e2a2f3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BB=BA=E5=8D=8E=28zhangjh=29?= Date: Thu, 7 Nov 2024 21:12:04 +0800 Subject: [PATCH] fix(@umijs/bundler-webpack): inlineLimit config being ineffective when set to 0 --- 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,