}
}
- // inject anchor before and after the child
if (insertionAnchor) {
newChildren.push(createAnchor(`[${insertionAnchor}`))
}
const blockAnchorLabel = getBlockAnchorLabel(child)
if (blockAnchorLabel) newChildren.push(createAnchor(blockAnchorLabel))
- // inject insertion anchor
if (insertionAnchor) {
newChildren.push(createAnchor(`${insertionAnchor}]`))
}
lastBranchIndex: number,
children: TemplateChildNode[],
) {
- // inject anchor before if node
if (insertionAnchor) {
newChildren.push(createAnchor(`[${insertionAnchor}`))
}
}
newChildren.push(wrapperNode)
- // inject block anchor
if (blockAnchorLabel) {
const repeatCount = j - i - (isElse ? 1 : 0) + 1
wrapperNode.children.push(
node.children = injectVaporAnchors(node.children, node)
}
- // inject anchor after branch nodes
if (insertionAnchor) {
newChildren.push(createAnchor(`${insertionAnchor}]`))
}
locateHydrationNode = locateHydrationNodeImpl
// optimize anchor cache lookup
;(Comment.prototype as any).$fe = undefined
+ ;(Node.prototype as any).$ps = undefined
;(Node.prototype as any).$pa = undefined
;(Node.prototype as any).$ia = undefined
;(Node.prototype as any).$aa = undefined