Svelte 4 Released: Smaller Package and a Foundation for Svelte 5
Svelte 4 was primarily a maintenance release that cut the package size by nearly 75%, reduced dependencies, improved developer experience, and set the stage for Svelte 5.
Historical Archive. This article documents an event from 2023 and is preserved with its original date for reference. It is not current news, and details may have changed since publication.
What happened
Svelte 4 was released on June 22, 2023, according to the official announcement on the Svelte blog, more than four years after Svelte 3. The team described it as mainly a maintenance release that bumps minimum version requirements and tightens up the design in specific areas, setting the stage for the next generation of Svelte to be released as Svelte 5.
Smaller and faster
Svelte 4 delivered notable size and performance improvements. It reduced the Svelte package size by nearly 75%, from 10.6 MB down to 2.8 MB, meaning less waiting on npm install, and greatly reduced the number of dependencies from 61 down to 16, which means faster downloads and less susceptibility to supply-chain attacks. The release also produced smaller and faster hydration code; the team noted the JavaScript generated across the kit.svelte.dev site shrank by 12.7%.
Developer experience
The release made the authoring experience more intuitive and consistent: local transitions became the default to avoid animations blocking page transitions, preprocessors became easier to write, and several fixes made Content Security Policy easier to set up. It also overhauled how Svelte authors custom elements to eliminate a class of bugs, and improved the IDE experience with more reliable auto-imports and cmd+click navigation to implementations rather than declaration files.
Updated site and migration
Alongside the release, the official svelte.dev site was overhauled into multiple pages with improved mobile navigation, revamped TypeScript docs, dark mode, and an enhanced REPL. Most apps and libraries compatible with Svelte 3 were expected to be compatible with Svelte 4; the most common change for application authors was updating tooling to meet new minimum requirements such as Node.js 16, aided by a svelte-migrate command.
Why it mattered
Svelte 4 was deliberately unglamorous but important. By adopting modern tooling, slimming the package, and dropping legacy support, it reduced friction for users while creating the clean foundation the team needed to attempt the ambitious Svelte 5 rewrite that would follow.
Related on Skillo
See also: SvelteKit 1.0 and transitional apps, Svelte 5's runes and rewrite.
Sources
Published date reflects the original event date (2023-06-22). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.
Written by
Skillo Staff
0 Comments
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.