8000 Support custom resolvers for @nuxt/components · Issue #11785 · nuxt/nuxt · GitHub
[go: up one dir, main page]

Skip to content
Support custom resolvers for @nuxt/components #11785
@antfu

Description

@antfu

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0