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

Commit

Permalink
fix(index): don't pass compilation as an argument to `UglifyJsPlugi…
Browse files Browse the repository at this point in the history
…n.buildError` (#201)
  • Loading branch information
Wes Moberly authored and michael-ciniawsky committed Jan 4, 2018
1 parent 0252622 commit 339ca10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class UglifyJsPlugin {

tasks.push(task);
} catch (error) {
compilation.errors.push(UglifyJsPlugin.buildError(error, file, sourceMap, compilation, requestShortener));
compilation.errors.push(UglifyJsPlugin.buildError(error, file, sourceMap, requestShortener));
}
});

Expand All @@ -183,7 +183,7 @@ class UglifyJsPlugin {
// Handling results
// Error case: add errors, and go to next file
if (error) {
compilation.errors.push(UglifyJsPlugin.buildError(error, file, sourceMap, compilation, requestShortener));
compilation.errors.push(UglifyJsPlugin.buildError(error, file, sourceMap, requestShortener));
return;
}

Expand Down

0 comments on commit 339ca10

Please sign in to comment.