Skip to content

Commit 3296520

Browse files
committed
fix
1 parent c8c8848 commit 3296520

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte/src/compiler/phases/3-transform/server/transform-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ function serialize_inline_component(node, component_name, context) {
11601160
}
11611161

11621162
if (snippet_declarations.length > 0) {
1163-
statements.unshift(...snippet_declarations);
1163+
statements = [b.block([...snippet_declarations, ...statements])];
11641164
}
11651165

11661166
return statements;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ export function css_props(payload, is_html, props, component) {
177177
}
178178
component();
179179
if (is_html) {
180-
payload.out += `<!----></div>`;
180+
payload.out += `</div>`;
181181
} else {
182-
payload.out += `<!----></g>`;
182+
payload.out += `</g>`;
183183
}
184184
}
185185

0 commit comments

Comments
 (0)