Skip to content

Commit 64340c7

Browse files
committed
Fix ProgressPlugin for multi compiler caused by ES6 refactoring
arguments can not be used within arrow functions
1 parent 06b6cbb commit 64340c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/ProgressPlugin.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ProgressPlugin {
2323
if(compiler.compilers) {
2424
const states = new Array(compiler.compilers.length);
2525
compiler.compilers.forEach(function(compiler, idx) {
26-
compiler.apply(new ProgressPlugin((p, msg) => {
26+
compiler.apply(new ProgressPlugin(function(p, msg) {
2727
states[idx] = Array.prototype.slice.apply(arguments);
2828
handler.apply(null, [
2929
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,

0 commit comments

Comments
 (0)