SvelteKit 3(svelte.dev)
396 points by sampsn 12 days ago | 171 comments
tl;dr: SvelteKit 3.0 ships as an incremental release focused on polish and type safety, with an `npx sv migrate sveltekit-3` command to automate upgrades. Breaking changes include moving config to `vite.config.ts`, replacing the `$lib` alias with the standard `#lib` subpath import, improved environment variables, less boilerplate for service workers, and better error handling. Remote functions for type-safe client-server communication are the team's next priority but aren't ready yet, as they depend on the still-experimental Async Svelte.
HN Discussion:
  • ↑Enthusiastic praise for SvelteKit as a production-ready framework with excellent DX
  • ↑Svelte preferred over React/Next.js for personal and professional projects
  • ↓Criticism that Svelte constantly reinvents itself with breaking changes
  • •Questions about LLM/vibe-coding compatibility with Svelte compared to React
  • ↓Dislike of SvelteKit's routing conventions and file naming