Skip to content

Documentation correction: add vite.config.ts support for SvelteKit 2.62.0+ path aliases #2750

@TopDuke

Description

@TopDuke

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions welcomeOpen to contributionsdocsA change or addition to the documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions