nuxt / components

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

A way to get an array of all the components that are autoloaded #250

Open SebbeJohansson opened 2 years ago

SebbeJohansson commented 2 years ago

Is your feature request related to a problem? Please describe. I have previously used this.$options.components to access all the components that has been added using Vue.component(). Now that i am using @nuxt/components i don't need to use vue.component(), but i still need a way to check all the imported components.

Describe the solution you'd like An array of all the components that are accessible some how.

Describe alternatives you've considered I have not found an alternative solution, besides scrapping the whole feature that uses this.

Additional context Maybe i have missed a way to do this somewhere, but as far as i can tell it is not possible.