Skip to content

watch: track worker thread entry files in --watch mode#62368

Open
SudhansuBandha wants to merge 2 commits intonodejs:mainfrom
SudhansuBandha:watch-worker-support
Open

watch: track worker thread entry files in --watch mode#62368
SudhansuBandha wants to merge 2 commits intonodejs:mainfrom
SudhansuBandha:watch-worker-support

Conversation

@SudhansuBandha
Copy link

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 the watch mode, ensuring restarts when worker files change.

Fixes: #62275

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 the watch mode, ensuring restarts when worker files change.

Fixes: nodejs#62275
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. worker Issues and PRs related to Worker support. labels Mar 21, 2026
@SudhansuBandha SudhansuBandha marked this pull request as ready for review March 21, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. worker Issues and PRs related to Worker support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Watch mode not triggered by worker module and dependencies

2 participants