Skip to content

Set impliedNodeFormat on sourceFiles maufactured in watch mode #46349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

weswigham
Copy link
Member

Fixes #46333

I put quite a bit of effort into testing this in build/incremental mode in the initial PR (that's why impliedNodeFormat is serialized into the build info file already!) - I naively assumed watch mode would come for free from that. I was incorrect in that assumption. 😢 In any case, the fix is quite small - just setting the impliedNodeFormat SourceFile member on source files made by the watch program. (Which, as a reminder, this field has to be set by the program because you need a full module resolver host to set it, and the program is the first level at which we have one available)

@weswigham weswigham merged commit ac34584 into microsoft:main Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--watch mode forgets original output target with nodenext
3 participants