@@ -10,7 +10,7 @@ class FlagDependencyExportsPlugin {
1010 compiler . plugin ( "compilation" , ( compilation ) => {
1111 compilation . plugin ( "finish-modules" , ( modules ) => {
1212
13- const dependencies = { } ;
13+ const dependencies = Object . create ( null ) ;
1414
1515 let module ;
1616 let moduleWithExports ;
@@ -33,7 +33,7 @@ class FlagDependencyExportsPlugin {
3333 depBlock . variables . forEach ( ( variable ) => {
3434 variable . dependencies . forEach ( ( dep ) => processDependency ( dep ) ) ;
3535 } ) ;
36- depBlock . blocks . forEach ( ( block ) => processDependenciesBlock ( block ) ) ;
36+ depBlock . blocks . forEach ( processDependenciesBlock ) ;
3737 }
3838
3939 function processDependency ( dep , usedExports ) {
@@ -45,8 +45,8 @@ class FlagDependencyExportsPlugin {
4545 if ( exportDeps ) {
4646 exportDeps . forEach ( ( dep ) => {
4747 const depIdent = dep . identifier ( ) ;
48- let array = dependencies [ "$" + depIdent ] ;
49- if ( ! array ) array = dependencies [ "$" + depIdent ] = [ ] ;
48+ let array = dependencies [ depIdent ] ;
49+ if ( ! array ) array = dependencies [ depIdent ] = [ ] ;
5050 if ( array . indexOf ( module ) < 0 )
5151 array . push ( module ) ;
5252 } ) ;
@@ -71,7 +71,7 @@ class FlagDependencyExportsPlugin {
7171 }
7272
7373 function notifyDependencies ( ) {
74- const deps = dependencies [ "$" + module . identifier ( ) ] ;
74+ const deps = dependencies [ module . identifier ( ) ] ;
7575 if ( deps ) {
7676 deps . forEach ( ( dep ) => queue . push ( dep ) ) ;
7777 }
0 commit comments