# What's new in Svelte: August 2021

DevFeed: [What's new in Svelte: August 2021](<https://devfeed.tech/articles/what-s-new-in-svelte-august-2021-3062.md>)

Original publisher: [Read original article](<https://svelte.dev/blog/whats-new-in-svelte-august-2021>)

Author: Dani Sandoval

Published: 2021-08-01T00:00:00Z

Content type: article

Language: en

Sources: [Svelte blog](<https://devfeed.tech/sources/svelte-blog.md>)

Topics: [Svelte](<https://devfeed.tech/topics/svelte.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [changelog](<https://devfeed.tech/topics/changelog.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Vite](<https://devfeed.tech/topics/vite.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Front end](<https://devfeed.tech/topics/frontend.md>)

Tags: [changelog](<https://devfeed.tech/tags/changelog.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [ssr](<https://devfeed.tech/tags/ssr.md>), [svelte](<https://devfeed.tech/tags/svelte.md>), [types](<https://devfeed.tech/tags/types.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [vite](<https://devfeed.tech/tags/vite.md>)

## AI overview

A monthly Svelte update covering new Svelte features, SvelteKit changes, language-tool improvements, bug fixes, and related community projects. Highlights include shadow DOM support, new export and await syntax, improved TypeScript preprocessing, SSR work, configurable build errors, and Vite integration updates.

## Source excerpt

From The Changelog (JS Party Ep. 182) to Svelte Radio (Episodes 29 and 30), it seems that folks couldn't help but talk about Svelte, this month! Also, shadow DOM support and new export and await functionality are new in Svelte. New in Svelte July was the most active month for the Svelte core repo since late 2019 as we really worked to reduce the number of outstanding PRs and saw the release of Svelte 3.39.0, 3.40.0, and 3.41.0. Tons of bug fixes were added as well as the following new features: The |trusted event modifier allows you to check if an event is trusted before it's called (#6137) The new svelte/ssr package to support work on improving SvelteKit SSR (#6416) A new errorMode compiler option to support improved preprocessing of TypeScript files (#6194) You can now specify a ShadowRoot as the target when creating a component - making it possible to render Svelte components inside the shadow DOM (#5869) The export { ... } from (#2214), export let { ... } = (#5612) and {#await ... then/catch} (#6270) syntaxes are all now supported in Svelte components For a full list of features and bug fixes, check out the Svelte changelog. SvelteKit Updates prerender.force is now prerender.onError which lets you fine-tune which errors fail the build and which do not (#2007) esbuild's configuration is now exposed for use with SvelteKit adapters (#1914) Error messages are friendlier now for common config errors (#1910) and compiler errors (#1827) Cookies will only be passed through if the target host is the same as the SvelteKit application or a more specific subdomain of it (#1847) index.js exports will now be changed to directory exports when packaging - making for nicer imports (#1905) Vite.js's mode is now exposed from $app/env (#1789) Better types across the board (#1778, #1791, #1646) To see all updates to SvelteKit, check out the SvelteKit changelog. Features & bug fixes from around svelte/* Language Tools now better support the "Workplace Trust" functionality (used in VS