Skip to content

Commit

Permalink
Fix _done function not dealing with compilation being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
satazor committed May 5, 2017
1 parent 7bc08e1 commit b0c45da
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 b0c45da

Please sign in to comment.