Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
extracted uglifiedAssers WeakSet hoisting change to separate pr
Browse files Browse the repository at this point in the history
  • Loading branch information
hulkish committed Jul 12, 2017
1 parent 0810394 commit c8673e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ class UglifyJsPlugin {
apply(compiler) {
const requestShortener = new RequestShortener(compiler.context);
const { uglifyOptions } = this.options;
const uglifiedAssets = new WeakSet();

compiler.plugin('compilation', (compilation) => {
if (this.options.sourceMap) {
Expand All @@ -152,6 +151,7 @@ class UglifyJsPlugin {
}

compilation.plugin('optimize-chunk-assets', (chunks, callback) => {
const uglifiedAssets = new WeakSet();
chunks.reduce((acc, chunk) => acc.concat(chunk.files || []), [])
.concat(compilation.additionalChunkAssets || [])
.filter(ModuleFilenameHelpers.matchObject.bind(null, this.options))
Expand Down

0 comments on commit c8673e1

Please sign in to comment.