Skip to content

Auto imports for vue files ? #1251

Closed Answered by aklinker1
ManUtopiK asked this question in Q&A
Discussion options

You must be logged in to vote

unimport doesn't support vue components. To add auto-imports for them, you need to add unplugin-vue-components. We should add this to @wxt-dev/module-vue though, unimport handles auto-imports for react/solid's .tsx files. See #772.

The one thing holding #772 back is generating types without needing to run vite (dev mode or build). Ideally, similar to the rest of the auto-imports, we need to be able to generate types inside the wxt prepare command. That way types are ready as soon as you run npm i and you don't have to wait for a full build.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ManUtopiK
Comment options

You must be logged in to vote
1 reply
@aiktb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants