Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for @nuxt/content global registration #9

Open
JessicaSachs opened this issue Sep 19, 2020 · 1 comment
Open

Support for @nuxt/content global registration #9

JessicaSachs opened this issue Sep 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@JessicaSachs
Copy link

JessicaSachs commented Sep 19, 2020

Is your feature request related to a problem? Please describe.
I want to register global components from Chakra so I can use them in markdown files w/ @nuxt/content. For this to work, they have to be globally registered. Right now, I have to manually import and then register all of the components I want to use in my markdown files.

Describe the solution you'd like
I want to globally register Chakra components without listing them all out. Tree-shaking is not a requirement, but would be nice.

If Chakra either:

  • had an option for globally registering components automatically or...
  • exported all of the components in some way (import all from '@chakra-ui/vue')

That would solve my problem.

@codebender828 codebender828 added the enhancement New feature or request label Sep 26, 2020
@codebender828
Copy link
Collaborator

codebender828 commented Sep 26, 2020

Hey @JessicaSachs ! Thanks for the suggestion with this! Theoretically I think it's possible. 🤔.

For this, I may need to examine how vue-loader is transforming the SFCs for globally registered components to implement something like this. I'll also look into @nuxt/components component library API to see what it can offer as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants