Skip to content
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

Make builder not depend on information from dts emit about really needed modules #57800

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat commented Mar 15, 2024

Earlier we use to use information from d.ts emit about all the module symbols that the file used so we could only mark subset of actual import/references etc to invalidate semantic diagnostics and d.ts emit for.
Given that d.ts emit is changing, we cant deterministically get this information any more so we have to invalidate it for all references

This removes use of exportMap from builder and buildInfo
8d3a02f Is just test update that fixes the incorrect information about signature (marks as version use even though it computed signature if signature and version are same)
dcdc654 actual change of not depending on exportedModulesFromDeclarationEmit and baselines that only change buildInfo to remove exportsMap entry
7b29ccb are all baselines that got updated because of using extra set of files to invalidate.

Precursor for #57681

…ause of false possitives from check file.signagure === file.version
…ot depending on d.ts having iterated over all symbols to find really needed module imports/type references etc
@jakebailey
Copy link
Member

Just so I understand, is this cleanup a net negative? Or is it fine?

@sheetalkamat
Copy link
Member Author

With this change we may refresh diagnostics and d.ts emit for more files depending on if dts emit uses subset of ts file imports or all of them. But with upcoming change of not writing references, type refs etc this is kind of needed if that goes in,

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems alright to me, then. Thanks for looking into this.

@sheetalkamat sheetalkamat merged commit ac2e122 into main Mar 18, 2024
26 checks passed
@sheetalkamat sheetalkamat deleted the builderNotDependingOnExports branch March 18, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants