Skip to content

Commit 4d53ca2

Browse files
committed
apply same treatment to render tag args
1 parent a14bb02 commit 4d53ca2

File tree

1 file changed

+4
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors

1 file changed

+4
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export function RenderTag(node, context) {
2020
/** @type {Expression[]} */
2121
let args = [];
2222
for (let i = 0; i < raw_args.length; i++) {
23-
let thunk = b.thunk(/** @type {Expression} */ (context.visit(raw_args[i])));
23+
let thunk = b.thunk(
24+
build_expression(context, /** @type {Expression} */ (raw_args[i]), node.metadata.arguments[i])
25+
);
26+
2427
const { has_call } = node.metadata.arguments[i];
2528

2629
if (has_call) {

0 commit comments

Comments
 (0)