Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 3a497b8

Browse files
committed
ensure seen instantiate promises are still waited on
1 parent ed2f36f commit 3a497b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/register-loader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@ function instantiateDeps (loader, load, link, registry, state, seen) {
406406
if (!depLink || depLink.linked)
407407
continue;
408408

409-
if (seen.indexOf(depLoad) !== -1)
409+
if (seen.indexOf(depLoad) !== -1) {
410+
deepDepsInstantiatePromises.push(depLink.depsInstantiatePromise);
410411
continue;
412+
}
411413
seen.push(depLoad);
412414

413415
deepDepsInstantiatePromises.push(instantiateDeps(loader, depLoad, depLoad.linkRecord, registry, state, seen));

0 commit comments

Comments
 (0)