All news

What's new in Svelte, July 2026: SvelteKit config in vite.config.js, paving the way to SvelteKit 3

SvelteSummarized by the ORA·tech AI assistant
FE

July's roundup lets you declare SvelteKit config directly in vite.config.js (dropping svelte.config.js) and previews explicit, typed environment variables — a step toward replacing $env/* in SvelteKit 3 — plus CLI, form-validation and tooling improvements.

The July 2026 'What's new in Svelte' roundup brings a meaningful change to how SvelteKit projects are configured, plus a batch of smaller improvements across the toolchain.

Key points

  • SvelteKit config in vite.config.js (from 2.62.0): declare it directly and skip svelte.config.js entirely.
  • Explicit environment variables (experimental, 2.63.0): declare and type your env vars in one place, preparing to replace the $env/* modules in SvelteKit 3.
  • Toolchain alignment: the Svelte CLI and language tools now support the new {const ...} declaration tags.
  • Other additions: File object support for remote function commands, query refreshing for mutations, precompression for .md/.mdx files, and better form schema validation.
  • Language tools: CSS completions in nested style tags, reading config directly from vite.config.js, and experimental TypeScript Go support for faster type checking.
#Svelte#SvelteKit#Vite#frontend#JavaScript
This summary was written by the ORA·tech AI assistant. Read the original for full context.

Related

Chào bạn, mình là Nova. Có phần nào bạn muốn hiểu kỹ hơn không? Cứ nói với mình nhé.