MCPcopy
hub / github.com/webpack/webpack / invalidate

Method invalidate

lib/Watching.js:422–432  ·  view source on GitHub ↗

* Processes the provided error callback. * @param {ErrorCallback=} callback signals when the build has completed again * @returns {void}

(callback)

Source from the content-addressed store, hash-verified

420 * @returns {void}
421 */
422 invalidate(callback) {
423 if (callback) {
424 this.callbacks.push(callback);
425 }
426 if (!this._invalidReported) {
427 this._invalidReported = true;
428 this.compiler.hooks.invalid.call(null, Date.now());
429 }
430 this._onChange();
431 this._invalidate();
432 }
433
434 /**
435 * Processes the provided file time info entries.

Callers

nothing calls this directly

Calls 3

_invalidateMethod · 0.95
pushMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected