Svelte 4 shrinks code footprint, compiled output

More than four years after the arrival of Svelte 3, Svelte 4 is now available, offering smaller and faster code hydration for better performance.

Svelte 4 reduces the Svelte package size by nearly 75%, from 10.6MB to 2.8MB, translating to less waiting on npm install. This will be especially noticeable for users of the Svelte REPL, users with limited connectivity, and users loading the learn.svelte.dev interactive learning experience for the first time, the Svelte team said. Users of SvelteKit can see the shrinkage in compiled output by examining the .svelte-kit/output/client/_app/immutable/nodes folder.

To read this article in full, please click here