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

Method invalidate

lib/MultiWatching.js:32–46  ·  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

30 * @returns {void}
31 */
32 invalidate(callback) {
33 if (callback) {
34 asyncLib.each(
35 this.watchings,
36 (watching, callback) => watching.invalidate(callback),
37 (err) => {
38 callback(/** @type {Error | null} */ (err));
39 }
40 );
41 } else {
42 for (const watching of this.watchings) {
43 watching.invalidate();
44 }
45 }
46 }
47
48 suspend() {
49 for (const watching of this.watchings) {

Callers

nothing calls this directly

Calls 2

invalidateMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected