From b97ae401211952246eab830369544dfc577abf14 Mon Sep 17 00:00:00 2001 From: paoloricciuti Date: Tue, 17 Sep 2024 09:39:52 +0200 Subject: [PATCH] docs: better docs for css injected and `render` --- .../routes/docs/content/03-appendix/02-breaking-changes.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md index b217af1d71..87053931cb 100644 --- a/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md +++ b/sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md @@ -99,6 +99,12 @@ import App from './App.svelte'; In Svelte 4, rendering a component to a string also returned the CSS of all components. In Svelte 5, this is no longer the case by default because most of the time you're using a tooling chain that takes care of it in other ways (like SvelteKit). If you need CSS to be returned from `render`, you can set the `css` compiler option to `'injected'` and it will add `