diff --git a/packages/kit/src/exports/vite/index.js b/packages/kit/src/exports/vite/index.js index 1a79f37bc888..419e507dd37e 100644 --- a/packages/kit/src/exports/vite/index.js +++ b/packages/kit/src/exports/vite/index.js @@ -820,8 +820,9 @@ async function kit({ svelte_config }) { /** @type {string[]} */ const ssr_stylesheets = []; for (const key in server_manifest) { - if (server_manifest[key].css) { - ssr_stylesheets.push(...server_manifest[key].css); + const stylesheets = server_manifest[key].css; + if (stylesheets) { + ssr_stylesheets.push(...stylesheets); } } const ssr_stylesheets_set = new Set(ssr_stylesheets);