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,10 +22,10 @@ export const transformRef: NodeTransform = (node, context) => {
|
|||
? createSimpleExpression(dir.value.content, true, dir.value.loc)
|
||||
: EMPTY_EXPRESSION
|
||||
}
|
||||
|
||||
context.registerOperation({
|
||||
type: IRNodeTypes.SET_REF,
|
||||
element: context.reference(),
|
||||
value,
|
||||
})
|
||||
return () =>
|
||||
context.registerOperation({
|
||||
type: IRNodeTypes.SET_REF,
|
||||
element: context.reference(),
|
||||
value,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue