Skip to content

Commit

Permalink
Preserve assets from concatenated module
Browse files Browse the repository at this point in the history
  • Loading branch information
log2-hwan committed Jun 22, 2017
1 parent a959fef commit ab9e938
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

1 comment on commit ab9e938

@kiding
Copy link

@kiding kiding commented on ab9e938 Jul 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zi

Please sign in to comment.