Skip to content

Commit 8845a7d

Browse files
committed
Copy watchOptions properly in Compiler.js
Replace Object.create() with assign() from object-assign.
1 parent 17a68e7 commit 8845a7d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Compiler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Author Tobias Koppers @sokra
44
*/
55
var path = require("path");
6+
var assign = require("object-assign");
67
var Tapable = require("tapable");
78

89
var Compilation = require("./Compilation");
@@ -23,7 +24,7 @@ function Watching(compiler, watchOptions, handler) {
2324
aggregateTimeout: watchOptions
2425
};
2526
} else if(watchOptions && typeof watchOptions === "object") {
26-
this.watchOptions = Object.create(watchOptions);
27+
this.watchOptions = assign({}, watchOptions);
2728
} else {
2829
this.watchOptions = {};
2930
}

0 commit comments

Comments
 (0)