MCPcopy
hub / github.com/webpack/webpack / shutdown

Method shutdown

lib/Watching.js:508–515  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected