Skip to content

Pick correct compilerOptions when checking if we can share emitSignatures#50910

Merged
sheetalkamat merged 3 commits intomainfrom
modulify
Sep 28, 2022
Merged

Pick correct compilerOptions when checking if we can share emitSignatures#50910
sheetalkamat merged 3 commits intomainfrom
modulify

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

OldCompilerOptions is set only if referencemaps are created vs not created. Module.None does not create reference map but other values do create it. Which is what determines if we can say copy semantic diagnostics etc..
But emit signatures are purely based on declaration path and their contents so they should only use the compilerOptions directly from old state.

Fixes #50902

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

getCompilerOptionValue can be called with options = undefined after tsconfig#module change

5 participants