nuxt / components

Scan and auto import components for Nuxt.js 2.13+
MIT License
887 stars 48 forks source link

[QUESTION] Get all components? #220

Closed vampics closed 3 years ago

vampics commented 3 years ago

Hello,

i've been working on it for a while and unfortunately can't find a solution. I am looking for a possibility to get all components data (props and slots) like Vue.options.components it does in a functional component. Vue.options.components looks like completely empty the whole time since i use @nuxt/components and i find no solution to get these informations.

I need these informations for a custom dynamic component loader to merge data, props and slots.

I hope that someone can help me here.

pi0 commented 3 years ago

Hi @vampics. Actually, you can use .nuxt/components/index.js file. It includes all component exports for your custom solution :)

vampics commented 3 years ago

🙈 Holy Moly. I was blind...

Thanks!