Sveltekit Autoimport

screenshot of Sveltekit Autoimport
svelte
vite

Automatically detect and import components/modules for SvelteKit projects

Overview

The SvelteKit Auto Import tool is designed to automatically detect and import components and modules for SvelteKit projects. It searches for undefined components or modules and attempts to fix them by auto-importing. This tool requires guidance on where to import components from, how to import for specific variables, and allows for the explicit listing of components from third-party modules.

Features

  • Automatic detection and import: The tool automatically detects undefined components or modules and imports them.
  • Guided importation: Users can guide the tool on where to import components from and how to import for specific variables.
  • Explicit component listing: Users can explicitly list components being used from third-party modules.
  • Name strategy: By default, component names are namespaced with their directory names and normalized to upper camel case format.
  • Prefixing: Components can be prefixed with a given name.
  • Flat option: Users can choose to set the flat option to true, which will not add any namespace.
svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects