MCPcopy
hub / github.com/webpack/webpack / watch

Function watch

test/MultiCompiler.test.js:373–387  ·  view source on GitHub ↗
(
					files,
					directories,
					missing,
					startTime,
					options,
					callback,
					callbackUndelayed
				)

Source from the content-addressed store, hash-verified

371 compiler.watchFileSystem =
372 /** @type {import("../lib/util/fs").WatchFileSystem} */ ({
373 watch(
374 files,
375 directories,
376 missing,
377 startTime,
378 options,
379 callback,
380 callbackUndelayed
381 ) {
382 watchCallbacks.push(callback);
383 watchCallbacksUndelayed.push(callbackUndelayed);
384 return /** @type {import("../lib/util/fs").Watcher} */ (
385 /** @type {unknown} */ (undefined)
386 );
387 }
388 });
389 /** @type {string[]} */
390 const events = [];

Callers

nothing calls this directly

Calls 3

callbackFunction · 0.70
pushMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected