Closed MentalGear closed 2 years ago
Don't you want this https://github.com/antfu/unplugin-vue-components ?
Auto importing for components is out-of-scope of this plugin.
So this only auto imports functions/vars, not component files? Would be nice, to avoid confusion, to have the scope clearly stated in the readme .
I'm struggling for how to define custom paths/folders to auto import files from. For example, using sveltekit, I would like to have all files in /components detected for importing. (I tried to use "Custom Resolvers" but it lacks a clear example - only links to a pull request.)