*-`'external'`:theCSSwill be returnedinthe`css`fieldofthecompilationresult.MostSveltebundlerpluginswillsetthisto`'external'`andusetheCSSthatisstaticallygeneratedforbetterperformance,asitwillresultinsmallerJavaScriptbundlesandtheoutputcanbeservedascacheable`.css`files.
*-`'external'`:theCSSwillonly be returnedinthe`css`fieldofthecompilationresult.MostSveltebundlerpluginswillsetthisto`'external'`andusetheCSSthatisstaticallygeneratedforbetterperformance,asitwillresultinsmallerJavaScriptbundlesandtheoutputcanbeservedascacheable`.css`files.
*-`'external'`:theCSSwill be returnedinthe`css`fieldofthecompilationresult.MostSveltebundlerpluginswillsetthisto`'external'`andusetheCSSthatisstaticallygeneratedforbetterperformance,asitwillresultinsmallerJavaScriptbundlesandtheoutputcanbeservedascacheable`.css`files.
*-`'external'`:theCSSwillonly be returnedinthe`css`fieldofthecompilationresult.MostSveltebundlerpluginswillsetthisto`'external'`andusetheCSSthatisstaticallygeneratedforbetterperformance,asitwillresultinsmallerJavaScriptbundlesandtheoutputcanbeservedascacheable`.css`files.
*-`'external'`:theCSSwill be returnedinthe`css`fieldofthecompilationresult.MostSveltebundlerpluginswillsetthisto`'external'`andusetheCSSthatisstaticallygeneratedforbetterperformance,asitwillresultinsmallerJavaScriptbundlesandtheoutputcanbeservedascacheable`.css`files.
*-`'external'`:theCSSwillonly be returnedinthe`css`fieldofthecompilationresult.MostSveltebundlerpluginswillsetthisto`'external'`andusetheCSSthatisstaticallygeneratedforbetterperformance,asitwillresultinsmallerJavaScriptbundlesandtheoutputcanbeservedascacheable`.css`files.
`render` also returns a `css` string property, which is populated with the CSS from all components which were compiled with the `cssRenderOnServer` option.
If the `css` compiler option was set to `'injected'`, `<style>` elements will be included in the `head`.
### CSS no longer returned from server render by default
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 the CSS string returned from `render`, you can enable it via the `cssRenderOnServer` option.
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 the CSS string returned from `render`, you can enable it by setting the `css` compiler option to `'injected'`.