Svelte: Neuerungen im Mai 2021
Der Svelte-Compiler unterstützt :global() in zusammengesetzten Selektoren und CSS-Custom-Properties; SvelteKit bietet SPA-Erstellung, deaktivierbares SSR und bessere Fehlermeldungen.
Last week, Svelte Summit blew us away with a mountain of content! Check out the full recording or an audio-only (p)review on Svelte Radio. Now let’s get into this month’s news...
New features in the Svelte Compiler
:global()is now supported as part of compound CSS selectors (3.38.0, Example)- CSS custom properties can now be passed to components for use cases such as theming (3.38.0, Docs coming soon)
New in SvelteKit
- kit.svelte.dev has a fresh new look and the SvelteKit Demo Site got a fresh set of paint. Check it out by running
npm init svelte@next - You can now use
@sveltejs/adapter-staticto create a single-page app or SPA by specifying a fallback page (PR, Docs) - Disable Server-side Rendering (SSR) app-wide or on a page-by-page basis (PR)
- Error messages thrown during pre-rendering are now much more informative and readable (PR, Docs) …