vue
vue copied to clipboard
fix: typescript resolution
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:
With extension declared in exports:
Relates to: https://github.com/microsoft/TypeScript/issues/53575