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

pull/16769/head
Rich Harris 3 days ago committed by GitHub
parent 33453869e7
commit 4e048f1a7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -12,8 +12,7 @@ export function SnippetBlock(node, context) {
let fn = b.function_declaration(
node.expression,
[b.id('$$payload'), ...node.parameters],
/** @type {BlockStatement} */ (context.visit(node.body)),
node.body.metadata.is_async
/** @type {BlockStatement} */ (context.visit(node.body))
);
// @ts-expect-error - TODO remove this hack once $$render_inner for legacy bindings is gone

Loading…
Cancel
Save