unplugin-vue-components icon indicating copy to clipboard operation
unplugin-vue-components copied to clipboard

support multiple instance

Open Shana-AE opened this issue 3 months ago • 3 comments

Clear and concise description of the problem

https://stackblitz.com/edit/vitejs-vite-tytgmrg8?file=vite.config.ts

I have multiple components folders need to be resolved. one is business components put in src/components and should has directoryAsNamespace: true, and one is ui components, which should be used without namespace. I try to use multiple instance to generate two .d.ts files to make it more clear and tweakable. But I found the second instance cannot resolve components. Is there any good solution? thx

Image

Suggested solution

add support for multiple instance

Alternative

No response

Additional context

No response

Validations

  • [x] Follow our Code of Conduct
  • [x] Read the Contributing Guide.
  • [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Shana-AE avatar Sep 17 '25 09:09 Shana-AE

Because a file will only be converted once, converted files will be marked with an /* unplugin-vue-components disabled */

lyric-zemin avatar Sep 22 '25 02:09 lyric-zemin

Because a file will only be converted once, converted files will be marked with an /* unplugin-vue-components disabled */

thanks. but if it supports multiple instances or multiple separated configure for deferent path, it'll be more convenient.

Shana-AE avatar Sep 26 '25 07:09 Shana-AE