Change Type
Correction
Proposed Changes
Starting from @sveltejs/kit@2.62.0, 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:
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.ts using sveltekit()
Thanks for maintaining this great project!
Change Type
Correction
Proposed Changes
Starting from
@sveltejs/kit@2.62.0, SvelteKit supports passing config directly through thesveltekit()Vite plugin.However, the current shadcn-svelte installation docs for SvelteKit still only reference updating
svelte.config.jsfor path aliases:For SvelteKit 2.62.0+, it would be helpful to mention a
vite.config.tsalternative alongside the legacysvelte.config.jsapproach for older versions.Suggested update:
svelte.config.jsvite.config.tsusingsveltekit()Thanks for maintaining this great project!