Skip to content

Commit

Permalink
fix(@umijs/bundler-webpack): inlineLimit config being ineffective whe…
Browse files Browse the repository at this point in the history
…n set to 0
  • Loading branch information
张建华(zhangjh) committed Nov 7, 2024
1 parent bfc2b76 commit 0b5ec85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler-webpack/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function getConfig(opts: IOpts): Promise<Configuration> {
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,
Expand Down

0 comments on commit 0b5ec85

Please sign in to comment.