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

Function reportModuleToWatchMode

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

* Tell the watch mode that a module was required. * @param {string} filename Absolute path of the module * @returns {void}

(filename)

Source from the content-addressed store, hash-verified

317 * @returns {void}
318 */
319function reportModuleToWatchMode(filename) {
320 if (shouldReportRequiredModules() && process.send) {
321 process.send({ 'watch:require': [filename] });
322 }
323}
324
325/**
326 * Tell the watch mode that a module was not found.

Callers 1

loader.jsFile · 0.85

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…