Skip to content

Commit b63f4c9

Browse files
Fix logic to check for missing dependencies
1 parent 1db1e16 commit b63f4c9

File tree

1 file changed

+2
-4
lines changed
  • packages/babel-helper-define-polyfill-provider/src

1 file changed

+2
-4
lines changed

packages/babel-helper-define-polyfill-provider/src/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,8 @@ function instantiateProvider<Options>(
224224

225225
const found = missingDependencies.all
226226
? false
227-
: mapGetOr(
228-
depsCache,
229-
`${name} :: ${dirname}`,
230-
() => !deps.has(dirname, name),
227+
: mapGetOr(depsCache, `${name} :: ${dirname}`, () =>
228+
deps.has(dirname, name),
231229
);
232230

233231
if (!found) {

0 commit comments

Comments
 (0)