* 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)
| 329 | * @returns {void} |
| 330 | */ |
| 331 | function 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. |