Skip to content

Use original module resolution #17

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 5 commits into from
Sep 7, 2020
Merged

Conversation

dfreeman
Copy link
Member

@dfreeman dfreeman commented Sep 7, 2020

When the results of template transformation could affect the type of a component, it was important that imported symbols in other modules reflect that type information. To accomplish that, the tsserver plugin caused all imports to resolve to a transformed version of the module they were targeting, re-exporting the contents of the original module if no transformation was needed.

One side effect of this was that we needed to implement merging for auto-import actions ourselves (#7), because TS would always see the existing import statements in a file as belonging to the transformed modules, while the incoming symbols would be from the original.

This should fix #11, since we're no longer changing the default auto-import behavior at all.

@dfreeman dfreeman linked an issue Sep 7, 2020 that may be closed by this pull request
@dfreeman dfreeman merged commit f821abd into master Sep 7, 2020
@dfreeman dfreeman deleted the use-original-module-resolution branch September 7, 2020 13:42
@dfreeman dfreeman added the bug Something isn't working label Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate import merging failures Diagnostics occasionally mention the transformed name of a module
1 participant