feat(compiler): mark hoisted trees with patchFlag
This commit is contained in:
@@ -52,6 +52,7 @@ function walk(
|
||||
) {
|
||||
if (!doNotHoistNode && isStaticNode(child, resultCache)) {
|
||||
// whole tree is static
|
||||
;(child.codegenNode as VNodeCall).patchFlag = PatchFlags.HOISTED + ``
|
||||
const hoisted = context.transformHoist
|
||||
? context.transformHoist(child, context)
|
||||
: child.codegenNode!
|
||||
|
||||
Reference in New Issue
Block a user