Skip to content

Fix auto-imports of redirected packages while making ExportInfoMap smaller? #52718

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

Closed

Conversation

andrewbranch
Copy link
Member

I noticed while investigating #52661 that redirected packages might not be behaving as intended in the ExportInfoMap. Exports from redirected source files are present in the ExportInfoMap, but later forEachFileNameOfModule fetches redirects and considers them in its logic, so there’s definitely some amount of redundant work and storage. Currently, however, there are a couple places where we get the redirect target instead of the source for a module specifier computation, so there are cases where auto-imports that should be available via a redirect don’t work at all.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Feb 10, 2023
@sandersn
Copy link
Member

sandersn commented Apr 2, 2025

@andrewbranch do you remember if this PR was worthwhile at the time that you opened it? Is it worth keeping around until you have time to work on it again?

@andrewbranch
Copy link
Member Author

I think the ideas from this can be incorporated into Corsa

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