| | |
| | | |
| | | class MultiWatching { |
| | | /** |
| | | * Creates an instance of MultiWatching. |
| | | * @param {Watching[]} watchings child compilers' watchers |
| | | * @param {MultiCompiler} compiler the compiler |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Processes the provided error callback. |
| | | * @param {ErrorCallback=} callback signals when the build has completed again |
| | | * @returns {void} |
| | | */ |
| | |
| | | this.watchings, |
| | | (watching, callback) => watching.invalidate(callback), |
| | | (err) => { |
| | | callback(err); |
| | | callback(/** @type {Error | null} */ (err)); |
| | | } |
| | | ); |
| | | } else { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Processes the provided error callback. |
| | | * @param {ErrorCallback} callback signals when the watcher is closed |
| | | * @returns {void} |
| | | */ |
| | |
| | | this.compiler.hooks.watchClose.call(); |
| | | if (typeof callback === "function") { |
| | | this.compiler.running = false; |
| | | callback(err); |
| | | callback(/** @type {Error | null} */ (err)); |
| | | } |
| | | } |
| | | ); |