1 parent 85e0a52 commit 60f7383Copy full SHA for 60f7383
1 file changed
lib/FlagDependencyExportsPlugin.js
@@ -45,8 +45,7 @@ class FlagDependencyExportsPlugin {
45
if(exportDeps) {
46
exportDeps.forEach((dep) => {
47
const depIdent = dep.identifier();
48
- let array = dependencies[depIdent];
49
- if(!array) array = dependencies[depIdent] = [];
+ const array = dependencies[depIdent] = dependencies[depIdent] || [];
50
if(array.indexOf(module) < 0)
51
array.push(module);
52
});
0 commit comments