Skip to content

Commit

Permalink
remove code that pushes arrays of dependencies into dependencies
Browse files Browse the repository at this point in the history
the actua dep population is done in lines 155-159
  • Loading branch information
timse committed Jun 18, 2017
1 parent 2ba0499 commit 083843e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/optimize/ConcatenatedModule.js
Expand Up @@ -143,7 +143,7 @@ class ConcatenatedModule extends Module {
this.cacheable = modules.every(m => m.cacheable);
const modulesSet = new Set(modules);
this.reasons = rootModule.reasons.filter(reason => !modulesSet.has(reason.module));
this.dependencies = [].concat.apply([], modules.map(m => m.dependencies.filter(dep => !modulesSet.has(dep.module))));
this.dependencies = [];
this.meta = rootModule.meta;
this.dependenciesWarnings = modules.reduce((w, m) => m.dependenciesWarnings.forEach(x => w.push(x)), []);
this.dependenciesErrors = modules.reduce((w, m) => m.dependenciesErrors.forEach(x => w.push(x)), []);
Expand Down

0 comments on commit 083843e

Please sign in to comment.