Skip to content

Commit 6173bb8

Browse files
committed
Merge pull request webpack#778 from fresheneesz/patch-1
make Watching.close callback optional
2 parents 3ae1736 + b271c10 commit 6173bb8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/Compiler.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ Watching.prototype.invalidate = function() {
109109
};
110110

111111
Watching.prototype.close = function(callback) {
112+
if(callback === undefined) callback = function(){}
113+
112114
if(this.watcher) {
113115
this.watcher.close();
114116
this.watcher = null;

0 commit comments

Comments
 (0)