WEB Signal 412
SvelteKit 3 release candidate moves config to vite.config.ts and replaces $lib with #lib
SvelteKit 3 has entered release candidate, introducing breaking changes from version 2, with a migration tool available via sv migrate.
Engineers upgrading from SvelteKit 2 will need to run the migration tool and adjust to configuration in vite.config.ts and the #lib alias. The release candidate signals that a stable release is near, but breaking changes require planning. Improved error handling and environment variables could simplify app development.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Configuration now lives in vite.config.ts instead of svelte.config.js.
The $lib alias is replaced by #lib subpath imports, requiring file extensions in imports.
SvelteKit 3 requires Svelte 5, enabling better error handling with error boundaries.
THE CLUSTER
↗