(err)
| 506 | * @param {Error | null} err error if any |
| 507 | */ |
| 508 | const shutdown = (err) => { |
| 509 | this.compiler.hooks.watchClose.call(); |
| 510 | const closeCallbacks = |
| 511 | /** @type {ErrorCallback[]} */ |
| 512 | (this._closeCallbacks); |
| 513 | this._closeCallbacks = undefined; |
| 514 | for (const cb of closeCallbacks) cb(err); |
| 515 | }; |
| 516 | if (compilation) { |
| 517 | const logger = compilation.getLogger("webpack.Watching"); |
| 518 | logger.time("storeBuildDependencies"); |