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> |
||
|---|---|---|
| .. | ||
| cjs | ||
| esm | ||
| customization_hooks.js | ||
| helpers.js | ||
| package_json_reader.js | ||
| run_main.js | ||
| typescript.js | ||