Skip to content

Commit 2b30b06

Browse files
Add dirname to the cache key for missing dependencies (#89)
1 parent 1a470e6 commit 2b30b06

File tree

1 file changed

+5
-1
lines changed
  • packages/babel-helper-define-polyfill-provider/src

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ function instantiateProvider<Options>(
224224

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

229233
if (!found) {
230234
debugLog().missingDeps.add(dep);

0 commit comments

Comments
 (0)