mirror of https://github.com/vuejs/core.git
fix(compiler-vapor): SET_REF operation should be registered last (#159)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
parent
9a2c12e3cd
commit
ed6b1718d2
|
@ -22,7 +22,7 @@ export const transformRef: NodeTransform = (node, context) => {
|
||||||
? createSimpleExpression(dir.value.content, true, dir.value.loc)
|
? createSimpleExpression(dir.value.content, true, dir.value.loc)
|
||||||
: EMPTY_EXPRESSION
|
: EMPTY_EXPRESSION
|
||||||
}
|
}
|
||||||
|
return () =>
|
||||||
context.registerOperation({
|
context.registerOperation({
|
||||||
type: IRNodeTypes.SET_REF,
|
type: IRNodeTypes.SET_REF,
|
||||||
element: context.reference(),
|
element: context.reference(),
|
||||||
|
|
Loading…
Reference in New Issue