Skip to content

Commit

Permalink
Fix logic to check for missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 26, 2021
1 parent 1db1e16 commit b63f4c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/babel-helper-define-polyfill-provider/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@ function instantiateProvider<Options>(

const found = missingDependencies.all
? false
: mapGetOr(
depsCache,
`${name} :: ${dirname}`,
() => !deps.has(dirname, name),
: mapGetOr(depsCache, `${name} :: ${dirname}`, () =>
deps.has(dirname, name),
);

if (!found) {
Expand Down

0 comments on commit b63f4c9

Please sign in to comment.