Skip to content

Commit 046145f

Browse files
authored
fix: make sure CSS is preserved during SSR with bindings (#15645)
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 d6d99ca commit 046145f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/smooth-mugs-grin.md

+5
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

+1
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)