Skip to content

PnP: Fix watch mode for files required under PnP#7077

Open
clemyan wants to merge 2 commits intomasterfrom
clemyan/fix-watch
Open

PnP: Fix watch mode for files required under PnP#7077
clemyan wants to merge 2 commits intomasterfrom
clemyan/fix-watch

Conversation

@clemyan
Copy link
Member

@clemyan clemyan commented Mar 18, 2026

What's the problem this PR addresses?

When running under node --watch, the PnP hook only reports not-found virtual modules to the watching process, causing found virtual modules to not be watched.

Fixes (partially) #6871

How did you fix it?

Report found modules from the PnP hook to the watching process.

Note that this does not fix watch mode for imported modules, which remains broken for node 18.19+. Given that the ESM loader API hasn't stabilized I am hesitant to make any changes at this moment.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@clemyan clemyan changed the title versions PnP: Fix watch mode for files required under PnP Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant