MCPcopy
hub / github.com/webpack/webpack / runWatch

Function runWatch

test/BenchmarkTestCases.benchmark.mjs:434–437  ·  view source on GitHub ↗

* @param {Webpack} webpack webpack * @param {Configuration} config configuration * @param {(err: Error | null, stats?: Stats) => void} callback callback * @returns {Promise<Watching>} watching

(webpack, config, callback)

Source from the content-addressed store, hash-verified

432 * @returns {Promise<Watching>} watching
433 */
434async function runWatch(webpack, config, callback) {
435 const compiler = webpack(config);
436 return /** @type {Watching} */ (compiler.watch({}, callback));
437}
438
439/** @typedef {{ name: string, mode: "development" | "production", watch?: boolean }} Scenario */
440

Callers 1

beforeAllFunction · 0.85

Calls 2

webpackFunction · 0.50
watchMethod · 0.45

Tested by

no test coverage detected