chore: implement suggestions

This commit is contained in:
Rishabh Chawla 2020-09-19 09:53:03 +05:30
parent 29d17d4dab
commit bf9ae831bd
2 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,8 @@ class Compiler {
this.root = this;
/** @type {string} */
this.outputPath = "";
/** @type {Watching} */
this.watching = undefined;
/** @type {OutputFileSystem} */
this.outputFileSystem = null;

View File

@ -321,6 +321,7 @@ class Watching {
const shutdown = () => {
this.compiler.cache.shutdown(err => {
this.compiler.hooks.watchClose.call();
this.compiler.watching = undefined;
const closeCallbacks = this._closeCallbacks;
this._closeCallbacks = undefined;
for (const cb of closeCallbacks) cb(err);