Skip to content

Commit

Permalink
fix(utils): Handle invalid value for assetsInlineLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Dec 27, 2023
1 parent 01cc19c commit 53df0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/libs/getConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ exports.getConfig = function getConfig(file) {
// 隐藏支持 `assetsInlineLimit` 配置项, 默认仅支持 `limit`
item.assetsInlineLimit = typeof build.assetsInlineLimit === 'number'
? { limit: build.assetsInlineLimit }
: _.isPlainObject(build.assetsInlineLimit) ? build.assetsInlineLimit : {}
: _.isPlainObject(build.assetsInlineLimit) ? build.assetsInlineLimit : { limit: 0 }

return item
}).filter(item => item)
Expand Down

0 comments on commit 53df0b9

Please sign in to comment.