SvelteKit 3 moves config to Vite, retires $lib alias
SvelteKit 3 has reached release candidate and is now available, marking a shift in how apps are configured: settings now move from svelte.config.js to vite.config.ts, letting the Vite bundler read configs more easily. The $lib alias is replaced by #lib, aligning with Node's subpath imports and standard JavaScript packaging. There’s improved error handling, better environment variable support, and new migration tools. Remote functions remain experimental for now.
- Configuration now in vite.config.ts, not svelte.config.js
- $lib alias replaced by #lib for imports
- SvelteKit 3 requires Vite 8 and Svelte 5
- Error handling and env variable support improved
- Migration tool automates most code updates
Sources covering this
In this story
More in Enterprise
Cloudflare debuts K2 serverless event streaming in public beta
Cloudflare has launched the public beta of K2, a serverless event streaming platform on its Developer Platform.
Salesforce wins £2.4B UK tax agency technology contract
Salesforce has been awarded a ten-year contract valued at approximately £2.4 billion by the UK's tax agency, HMRC, to provide CRM and…
Cloudflare Basin launches as serverless data platform
Cloudflare has launched Basin, a serverless data analytics platform now generally available after a period in open beta.
AWS previews AI agent for cloud optimization
Amazon Web Services has launched a public preview of the Well-Architected Agent, an AI-powered tool that scans your cloud setup and…