{"repo":"yuanchuan/sveltekit-autoimport","free":true,"listed":false,"github":"https://github.com/yuanchuan/sveltekit-autoimport","clone":"git clone https://github.com/yuanchuan/sveltekit-autoimport.git","description":"Automatically detect and import components/modules for SvelteKit projects","language":"JavaScript","stars":240,"topics":["svelte","sveltekit","autoimport"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"sveltekit-autoimport Automatically detect and import components/modules for SvelteKit projects. Before After Installation Basic configuration Inside vite.config.js . How it works? This tool will NOT add global components blindly into your files. Instead, it searches for undefined components or modules, and then try to fix them by auto importing. You need to guide it where to import the components from: Or tell it how to import for some specific variables: Or explictly list the components being used from a third party module: Name strategy By default the component names will be namespaced with their directory names and then normalized to upper camel case format. For example: Prefix Components can be prefixed with a given name. So that Flat If the flat option is set to be true, no namespace will be added. So that Full options Example https://stackblitz.com/edit/vitejs-vite-tfpzge?file=src%2Froutes%2F%2Bpage.svelte","default_branch":null,"files":null,"tree":[],"storefront":"/r/yuanchuan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yuanchuan/sveltekit-autoimport/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}