Skip to content

Commit

Permalink
Add optional dependencies support (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardmenayde committed Jul 26, 2021
1 parent 5af2e61 commit 3b9b7ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/size-limit/load-plugins.js
Expand Up @@ -18,6 +18,7 @@ module.exports = function loadPlugins(pkg) {

let list = toArray(pkg.packageJson.dependencies)
.concat(toArray(pkg.packageJson.devDependencies))
.concat(toArray(pkg.packageJson.optionalDependencies))
.filter(i => i.startsWith('@size-limit/'))
.reduce(
(all, i) =>
Expand Down

0 comments on commit 3b9b7ec

Please sign in to comment.