Skip to content

Commit

Permalink
Merge pull request #5133 from log2-hwan/concatenated-module-asset-han…
Browse files Browse the repository at this point in the history
…dling-fix

Preserve assets from concatenated module
  • Loading branch information
sokra committed Jul 1, 2017
2 parents d21beb2 + ab9e938 commit 0905974
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/optimize/ConcatenatedModule.js
Expand Up @@ -156,6 +156,7 @@ class ConcatenatedModule extends Module {
this.dependenciesErrors = [];
this.warnings = [];
this.errors = [];
this.assets = {};
for(const m of modules) {
// populate dependencies
m.dependencies.filter(dep => !modulesSet.has(dep.module))
Expand All @@ -168,6 +169,8 @@ class ConcatenatedModule extends Module {
m.warnings.forEach(warning => this.warnings.push(warning));
// populate errors
m.errors.forEach(error => this.errors.push(error));

Object.assign(this.assets, m.assets);
}
}

Expand Down

0 comments on commit 0905974

Please sign in to comment.