Skip to content

Commit 186a097

Browse files
committed
fix: make sure CSS is preserved during SSR with bindings
fixes #15543 No test because this is a one-liner in a stable part of the code-base, also it can only happen within legacy mode when using bindings which is not getting any new updates at this point
1 parent 0425792 commit 186a097

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/smooth-mugs-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: make sure CSS is preserved during SSR with bindings

packages/svelte/src/internal/server/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export function copy_payload({ out, css, head, uid }) {
4949
*/
5050
export function assign_payload(p1, p2) {
5151
p1.out = p2.out;
52+
p1.css = p2.css;
5253
p1.head = p2.head;
5354
p1.uid = p2.uid;
5455
}

0 commit comments

Comments
 (0)