◐ Shell
clean mode source ↗

esm: ensure watch mode restarts after syntax errors by Xstoudi · Pull Request #61232 · nodejs/node

Move watch dependency reporting earlier in module resolution to ensure
file dependencies are tracked even when parsing fails.

Fixes: nodejs#61153

@nodejs-github-bot added esm

Issues and PRs related to the ECMAScript Modules implementation.

needs-ci

PRs that need a full CI run.

labels

Jan 1, 2026

avivkeller

@Xstoudi

@Xstoudi

marco-ippolito

joyeecheung

aduh95

@Xstoudi

joyeecheung

juanarbol

@juanarbol juanarbol added author ready

PRs that have at least one approval, no pending requests for changes, and a CI started.

commit-queue-squash

Add this label to instruct the Commit Queue to squash all the PR commits into the first one.

labels

Jan 14, 2026

@MoLow MoLow added the commit-queue

Add this label to land a pull request using GitHub Actions.

label

Jan 15, 2026

aduh95 pushed a commit that referenced this pull request

Jan 20, 2026
Move watch dependency reporting earlier in module resolution to ensure
file dependencies are tracked even when parsing fails.

Fixes: #61153
PR-URL: #61232
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>

islandryu pushed a commit to islandryu/node that referenced this pull request

Jan 25, 2026
Move watch dependency reporting earlier in module resolution to ensure
file dependencies are tracked even when parsing fails.

Fixes: nodejs#61153
PR-URL: nodejs#61232
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request

Jan 27, 2026

aduh95 pushed a commit that referenced this pull request

Jan 27, 2026
Move watch dependency reporting earlier in module resolution to ensure
file dependencies are tracked even when parsing fails.

Fixes: #61153
PR-URL: #61232
Reviewed-By: Aviv Keller <me@aviv.sh>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>

@Xstoudi Xstoudi deleted the fix/watch-report-early branch

February 24, 2026 19:49