unplugin / unplugin-auto-import

Auto import APIs on-demand for Vite, Webpack and Rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SvelteKit: Auto import src/components

MentalGear opened this issue · comments

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.)

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 .