Skip to content

Commit

Permalink
Fix ProgressPlugin for multi compiler caused by ES6 refactoring
Browse files Browse the repository at this point in the history
arguments can not be used within arrow functions
  • Loading branch information
zinserjan authored and sokra committed Apr 3, 2017
1 parent 6b209b1 commit 956f618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ProgressPlugin.js
Expand Up @@ -23,7 +23,7 @@ class ProgressPlugin {
if(compiler.compilers) {
const states = new Array(compiler.compilers.length);
compiler.compilers.forEach(function(compiler, idx) {
compiler.apply(new ProgressPlugin((p, msg) => {
compiler.apply(new ProgressPlugin(function(p, msg) {
states[idx] = Array.prototype.slice.apply(arguments);
handler.apply(null, [
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
Expand Down

0 comments on commit 956f618

Please sign in to comment.