Merge branch 'main' into svelte-custom-renderer

pull/18505/head
Paolo Ricciuti 1 week ago committed by GitHub
commit 33304b4b15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
chore: drop dead code that make TSGO fail

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: correctly transform declaration tags during SSR

@ -60,7 +60,9 @@ export function process_children(nodes, { visit, state }) {
if (evaluated.is_known) {
quasi.value.cooked += escape_html((evaluated.value ?? '') + '');
} else {
expressions.push(b.call('$.escape', /** @type {Expression} */ (visit(node.expression))));
expressions.push(
b.call('$.escape', /** @type {Expression} */ (visit(node.expression, state)))
);
quasi = b.quasi('', i + 1 === sequence.length);
quasis.push(quasi);
@ -80,7 +82,7 @@ export function process_children(nodes, { visit, state }) {
if (node.type === 'ExpressionTag' && node.metadata.expression.is_async()) {
flush();
const expression = /** @type {Expression} */ (visit(node.expression));
const expression = /** @type {Expression} */ (visit(node.expression, state));
let call = b.call(
'$$renderer.push',

@ -91,10 +91,7 @@ const rest_props_handler = {
*/
/*#__NO_SIDE_EFFECTS__*/
export function rest_props(props, exclude, name) {
return new Proxy(
DEV ? { props, exclude, name, other: {}, to_proxy: [] } : { props, exclude },
rest_props_handler
);
return new Proxy(DEV ? { props, exclude, name } : { props, exclude }, rest_props_handler);
}
/**

@ -0,0 +1,4 @@
<div>
{let dt = $derived(Date.parse("2026-10-01T00:00:00Z"))}
{typeof dt}
</div>
Loading…
Cancel
Save