-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingp2-nice-to-haveSvelteKit cannot be used by a small number of people, quality of life improvements, etc.SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
Milestone
Description
Describe the bug
+page ssr disabled make +layout ssr disabled too.
See #10764 (comment)
Reproduction
npm create svelte@latest layout-css-delayed-too
cd layout-css-delayed-too/
npm i -D @sveltejs/adapter-auto@npm:@sveltejs/adapter-static
echo '<slot /><style>:global(h1) {color: red;}</style>' > src/routes/+layout.svelte
echo 'export const prerender = true' > src/routes/+layout.ts
echo 'export const ssr = true' > src/routes/+page.ts
npm run build && cat build/index.html
# you can see stylesheet css here
echo 'export const ssr = false' > src/routes/+page.ts
npm run build && cat build/index.html
# now stylesheet css is goneLogs
No response
System Info
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
Memory: 14.04 GB / 30.64 GB
Container: Yes
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 18.17.1 - /usr/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 9.6.7 - /usr/bin/npm
pnpm: 7.18.0 - /usr/bin/pnpm
Browsers:
Chrome: 117.0.5938.88
npmPackages:
@sveltejs/adapter-auto: ^2.0.0 => 2.1.0
@sveltejs/adapter-static: ^2.0.3 => 2.0.3
@sveltejs/kit: ^1.20.4 => 1.24.1
svelte: ^4.0.5 => 4.2.0
vite: ^4.4.2 => 4.4.9Severity
serious, but I can work around it
Additional Information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp2-nice-to-haveSvelteKit cannot be used by a small number of people, quality of life improvements, etc.SvelteKit cannot be used by a small number of people, quality of life improvements, etc.