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

Commit 149dbf1

Browse files
committed
early binding
1 parent 9d4f3ca commit 149dbf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/loader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ function logloads(loads) {
707707
var depName = load.dependencies[i].value;
708708
var depModule = getOrCreateModuleRecord(depName);
709709

710+
depModule.importers.push(module);
711+
module.dependencies.push(depModule);
712+
710713
// if not already a module in the registry, try and link it now
711714
if (!loader.modules[depName]) {
712715

@@ -723,9 +726,6 @@ function logloads(loads) {
723726

724727
console.assert(depModule, 'Dependency module not found!');
725728

726-
module.dependencies.push(depModule);
727-
depModule.importers.push(module);
728-
729729
// run the setter for this dependency
730730
if (module.setters[i])
731731
module.setters[i](depModule.module);

0 commit comments

Comments
 (0)