chore: implement suggestions
This commit is contained in:
parent
29d17d4dab
commit
bf9ae831bd
|
@ -178,6 +178,8 @@ class Compiler {
|
|||
this.root = this;
|
||||
/** @type {string} */
|
||||
this.outputPath = "";
|
||||
/** @type {Watching} */
|
||||
this.watching = undefined;
|
||||
|
||||
/** @type {OutputFileSystem} */
|
||||
this.outputFileSystem = null;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue