Documentation correction: add vite.config.ts support for SvelteKit 2.62.0+ path aliases
Author: TopDukeCreated Jun 12, 2026Updated Aug 14, 2026
Labelsdocscontributions welcome
Change Type
Correction
Proposed Changes
Starting from @sveltejs/[email protected], SvelteKit supports passing config directly through the sveltekit() Vite plugin.
However, the current shadcn-svelte installation docs for SvelteKit still only reference updating svelte.config.js for path aliases:
- https://shadcn-svelte.com/docs/installation/sveltekit
- https://shadcn-svelte.com/docs/installation/manual
For SvelteKit 2.62.0+, it would be helpful to mention a vite.config.ts alternative alongside the legacy svelte.config.js approach for older versions.
Suggested update:
- Legacy approach (all versions): update
svelte.config.js - Recommended approach (SvelteKit 2.62.0+): configure path aliases in
vite.config.tsusingsveltekit()
Thanks for maintaining this great project!
Source: huntabyte/shadcn-svelte