-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Similar approach to https://github.com/antfu/unplugin-vue-components#importing-from-ui-libraries
I been using this pattern for unplugin-vue-components
for a while and I think it turns out a flexible and straightforward solution to support various component libraries without the changes need to be done on the author side. For example, some components might use JSX to build up the library, or uses all named exports on the top-level module, or imports styles separately. Additionally, the resolver opens more possibility to integrate on-demand usages, for example unplugin-icons
which the icons are served virtually via module name. This would also be great if we could join the force from the Vite side to provide a uniformed resolver solution and made it easier for ppl adopting to more libraries at ease.