MCPcopy Index your code
hub / github.com/nodejs/node / reportModuleNotFoundToWatchMode

Function reportModuleNotFoundToWatchMode

lib/internal/modules/cjs/loader.js:331–335  ·  view source on GitHub ↗

* Tell the watch mode that a module was not found. * @param {string} basePath The absolute path that errored * @param {string[]} extensions The extensions that were tried * @returns {void}

(basePath, extensions)

Source from the content-addressed store, hash-verified

329 * @returns {void}
330 */
331function reportModuleNotFoundToWatchMode(basePath, extensions) {
332 if (shouldReportRequiredModules() && process.send) {
333 process.send({ 'watch:require': ArrayPrototypeMap(extensions, (ext) => path.resolve(`${basePath}${ext}`)) });
334 }
335}
336
337/**
338 * Tell the watch mode that a module was required, from within a worker thread.

Callers 1

loader.jsFile · 0.85

Calls 2

sendMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…