Skip to content

Commit 06993d2

Browse files
authored
fix(@umijs/bundler-webpack): inlineLimit config being ineffective when set to 0 (#12768)
Co-authored-by: 张建华(zhangjh) <xxx>
1 parent 0fcea63 commit 06993d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bundler-webpack/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function getConfig(opts: IOpts): Promise<Configuration> {
6767
const config = new Config();
6868
userConfig.targets ||= DEFAULT_BROWSER_TARGETS;
6969
// normalize inline limit
70-
userConfig.inlineLimit = parseInt(userConfig.inlineLimit || '10000', 10);
70+
userConfig.inlineLimit = parseInt(userConfig.inlineLimit ?? '10000', 10);
7171
const useHash = !!(opts.hash || (userConfig.hash && !isDev));
7272
const applyOpts = {
7373
name: opts.name,

0 commit comments

Comments
 (0)