What changed
The Svelte team released SvelteKit 3 on October 1, 2026 alongside sv CLI 1.0. The major removes svelte.config.js in favour of passing SvelteKit configuration through the Vite plugin in vite.config.js, replaces the $lib alias with #lib based on standard subpath imports, removes legacy modules and updates environment/error handling. Minimum dependencies include Node 22.17, TypeScript 6, Svelte 5.57.1 and Vite 8.0.12. The sv migrate sveltekit-3 command handles many mechanical changes and emits TODOs for remaining manual work. On October 29, SvelteKit 3.1.1 added security-sensitive fixes: prevent server-side route resolution from loading code from another origin for pathnames beginning //, and prevent src/params.js from importing server-only modules into browser code. The release also changes remote-form parsing to linear time and includes adapter route-escaping fixes.
Why it matters
A production framework major can affect every build, test and deployment path, not just application syntax. Consolidating configuration with Vite reduces parallel config systems, while standard imports and stricter typing change assumptions in older SvelteKit projects. The CLI migration tool reduces effort but cannot guarantee application semantics or adapter compatibility. Teams that have already migrated to SvelteKit 3 should not treat 3.0 as a final upgrade target: 3.1.1 addresses server/client code separation and path interpretation at request boundaries. The upstream notes do not establish a CVE or successful exploitation, so the implications should not be overstated.
Configuration moves to the Vite plugin
SvelteKit configuration previously stored in svelte.config.js must move to vite.config.js. Tooling that reads or generates the old file needs updating.
Aliases and legacy APIs change
The $lib alias is replaced by #lib, and older app/store and service-worker paths are retired. Migration diagnostics and codemods cover much but not all cases.
Runtime requirements jump
SvelteKit 3 requires Node 22.17, TypeScript 6, Svelte 5.57.1 and Vite 8.0.12 or newer. CI, host images and adapters need version checks.
sv 1.0 supports the migration
The official CLI reached 1.0 and includes a migration command plus an official community add-on API, making scaffolding and upgrades more consistent.
October 29 follow-up: 3.1.1 repairs server/client trust boundaries
SvelteKit 3.1.1 fixes server-side route resolution for pathnames starting with double slashes, which previously could load code from another origin. It also prevents server-only modules from being imported into browser code through src/params.js. Both fixes concern security-sensitive separation, although the upstream release does not assign CVEs or document exploitation. The same release makes remote form parsing linear-time, avoids duplicate query.batch sharing, and includes adapter fixes: Cloudflare's generated _redirects/_routes.json path escaping, Vercel route-pattern escaping and Node text/event-stream immutable-header handling. Teams running 3.0.x or 3.1.0 should update to 3.1.1 or a confirmed later patch, then test routing, params, server-only imports and adapter deployments.