Questions tagged [sveltekit-autoimport]

3 questions
1
vote
0 answers

How to configure VS Code auto-imports in Sveltekit to avoid curly braces?

Using VS Code with Sveltekit, I see intellisense suggesting auto imports with relative paths. When an import selected, it adds it correctly: import Accordion from '$lib/components/Accordion.svelte'; I then wanted VS Code to respect the $lib alias,…
1
vote
1 answer

How can I simplify my imports when using SvelteKit with Vite bundler, like $lib/?

I am currently working on a project using SvelteKit with Vite bundler and I'm finding that my imports are becoming overly complicated. For example, to access certain files, I have to write imports like this: import GtoolsStore from…
1
vote
1 answer

How to auto import 'svelte/transition' with 'sveltekit-autoimport'?

I'm trying to use sveltekit-autoimport version 1.6.10 to auto import svelte/transition module. Inside vite.config.js import { defineConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte' import autoImport from…
gengns
  • 1,573
  • 14
  • 23