diff --git a/lib/Compiler.js b/lib/Compiler.js index 2d59a1a6481..486baf7c852 100644 --- a/lib/Compiler.js +++ b/lib/Compiler.js @@ -970,10 +970,13 @@ ${other}`); readRecords(callback) { if (this.hooks.readRecords.isUsed()) { if (this.recordsInputPath) { - asyncLib.parallel([ - cb => this.hooks.readRecords.callAsync(cb), - this._readRecords.bind(this) - ]); + asyncLib.parallel( + [ + cb => this.hooks.readRecords.callAsync(cb), + this._readRecords.bind(this) + ], + () => callback() + ); } else { this.records = {}; this.hooks.readRecords.callAsync(callback);