Skip to content

Commit 4fd545b

Browse files
authored
Merge pull request webpack#4828 from satazor/patch-1
Fix _done function not dealing with compilation being undefined
2 parents 7bc08e1 + b0c45da commit 4fd545b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Watching.prototype._done = function(err, compilation) {
8888
this.running = false;
8989
if(this.invalid) return this._go();
9090

91-
var stats = this._getStats(compilation);
91+
var stats = compilation ? this._getStats(compilation) : null;
9292
if(err) {
9393
this.compiler.applyPlugins("failed", err);
9494
this.handler(err, stats);

0 commit comments

Comments
 (0)