node/lib/internal/modules
SudhansuBandha 0e2adb3e45
watch: track worker entry files in watch mode
Currently, --watch mode only tracks dependencies from the main
module graph (require/import). Worker thread entry points created
via new Worker() are not included, so changes to worker files do
not trigger restarts.

This change hooks into Worker initialization and registers the
worker entry file with watch mode, ensuring restarts when worker
files change.

Fixes: https://github.com/nodejs/node/issues/62275
Signed-off-by: SudhansuBandha <sudhansu9.vssut@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62368
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2026-05-07 15:41:48 +02:00
..
cjs watch: track worker entry files in watch mode 2026-05-07 15:41:48 +02:00
esm watch: track worker entry files in watch mode 2026-05-07 15:41:48 +02:00
customization_hooks.js module: handle null source from async loader hooks in sync hooks 2025-11-07 18:11:30 +01:00
helpers.js module: run require.resolve through module.registerHooks() 2026-04-10 14:52:16 +02:00
package_json_reader.js src: cache missing package.json files in the C++ package config cache 2026-01-27 22:52:30 +01:00
run_main.js module: mark type stripping as stable 2025-11-18 15:29:15 +01:00
typescript.js lib: fix getTypeScriptParsingMode jsdoc 2025-07-03 10:50:12 +02:00