This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -652,6 +652,7 @@ function logloads(loads) {
652
652
if ( ! module || ! ( module instanceof Module ) )
653
653
throw new TypeError ( 'Execution must define a Module instance' ) ;
654
654
load . module = {
655
+ name : load . name ,
655
656
module : module
656
657
} ;
657
658
load . status = 'linked' ;
@@ -736,8 +737,12 @@ function logloads(loads) {
736
737
737
738
// only declarative modules have dynamic bindings
738
739
if ( depModule . importers ) {
739
- depModule . importers . push ( module ) ;
740
740
module . dependencies . push ( depModule ) ;
741
+ depModule . importers . push ( module ) ;
742
+ }
743
+ else {
744
+ // track dynamic records as null module records as already linked
745
+ module . dependencies . push ( null ) ;
741
746
}
742
747
743
748
// run the setter for this dependency
@@ -801,6 +806,10 @@ function logloads(loads) {
801
806
802
807
for ( var i = 0 , l = deps . length ; i < l ; i ++ ) {
803
808
var dep = deps [ i ] ;
809
+ // dynamic dependencies are empty in module.dependencies
810
+ // as they are already linked
811
+ if ( ! dep )
812
+ continue ;
804
813
if ( indexOf . call ( seen , dep ) == - 1 ) {
805
814
err = ensureEvaluated ( dep , seen , loader ) ;
806
815
// stop on error, see https://bugs.ecmascript.org/show_bug.cgi?id=2996
You can’t perform that action at this time.
0 commit comments