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

fix: typescript resolution #12997

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

blake-newman
Copy link
Member

Move 'types' to be first as per typescript requirements.

In order for vue/types/... to correctly resolve without extension with module type 'bundler', 'nodenext' etc the wildcard types needs to specify ./types/*.d.ts.

Many downstream packages import vue/types/vue and vue/types/options for ambient module argumentation.

Without extension declared in exports:
Screenshot 2023-03-30 at 14 32 07

With extension declared in exports:
Screenshot 2023-03-30 at 14 32 07

Relates to: microsoft/TypeScript#53575

Move 'types' to be first as per typescript requirements.

In order for `vue/types/...` to correctly resolve without extension with module type 'bundler', 'nodenext' etc the wildcard types needs to specify `./types/*.d.ts`.

Many downstream packages import `vue/types/vue` and `vue/types/options` for ambient module argumentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant