vite-plugin-vue-type-imports icon indicating copy to clipboard operation
vite-plugin-vue-type-imports copied to clipboard

Support more complex types

Open Zolyn opened this issue 2 years ago • 2 comments

Description

Note: This issue is a placeholder.

I'm planning to (partially) support the following types in the future:

Currently the plugin just simply extract types from files and it does not do static analysis.

It's hard to do static analysis which behaves as same as TS due to my poor knowledge of TS's type system. And unfortunately I don't have enough time to implement it.

Therefore, I prefer to wait for the release of Vue 3.3 and decide whether to implement it based on Vue 3.3's support for imported types used in compile-macros.

BTW, it would be great if there is a library that provides relevant functions. And I'm looking for it now.

Zolyn avatar Sep 07 '22 04:09 Zolyn

Not a progress report but an unofficial announcement (I haven't talked to wheat about it yet):

Now you can use unplugin-vue-macros as an alternative for vite-plugin-vue-type-imports. It provides the same functionality as vite-plugin-vue-type-imports and the implementation is more efficient than vite-plugin-vue-type-imports.

Additionally, I won't have time to maintain projects for a long period, though I don't know whether wheat will continue to maintain this project. Therefore, I decided to make this announcement.

In a word, I'm glad to see that Vue and its ecosystem are getting better and better. :)

Zolyn avatar Oct 27 '22 16:10 Zolyn

Thanks for all your contributions to the project @Zolyn! Considering I don't have much time to maintain this project either, I'll add a notice to the readme directing people towards unplugin-vue-macros

wheatjs avatar Oct 27 '22 17:10 wheatjs