Skip to content

Commit ed6b171

Browse files
Jevon617sxzz
andauthored
fix(compiler-vapor): SET_REF operation should be registered last (#159)
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
1 parent 9a2c12e commit ed6b171

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/compiler-vapor/src/transforms/transformRef.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export const transformRef: NodeTransform = (node, context) => {
2222
? createSimpleExpression(dir.value.content, true, dir.value.loc)
2323
: EMPTY_EXPRESSION
2424
}
25-
26-
context.registerOperation({
27-
type: IRNodeTypes.SET_REF,
28-
element: context.reference(),
29-
value,
30-
})
25+
return () =>
26+
context.registerOperation({
27+
type: IRNodeTypes.SET_REF,
28+
element: context.reference(),
29+
value,
30+
})
3131
}

0 commit comments

Comments
 (0)