Skip to content

Commit

Permalink
Merge pull request #4828 from satazor/patch-1
Browse files Browse the repository at this point in the history
Fix _done function not dealing with compilation being undefined
  • Loading branch information
sokra committed May 6, 2017
2 parents 7bc08e1 + b0c45da commit 4fd545b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Compiler.js
Expand Up @@ -88,7 +88,7 @@ Watching.prototype._done = function(err, compilation) {
this.running = false;
if(this.invalid) return this._go();

var stats = this._getStats(compilation);
var stats = compilation ? this._getStats(compilation) : null;
if(err) {
this.compiler.applyPlugins("failed", err);
this.handler(err, stats);
Expand Down

0 comments on commit 4fd545b

Please sign in to comment.