SvelteKit 3 moves configuration into vite.config.ts and renames the $lib alias
- Sources: primary, discussion
- Summary: SvelteKit 3 relocates configuration into
vite.config.tsand replaces the$libalias with the#libsubpath import. Environment variables, service workers, and error handling also change. Remote functions remain unshipped, behind an experimental Async Svelte flag. - Why it matters: Existing apps need a migration pass across config location, imports, environment variables, service workers, and error handling.