( text: string = '', // when used as the v-else branch, the comment node must be created as a // block to ensure correct updates. asBlock: boolean = false, )
| 775 | * @private |
| 776 | */ |
| 777 | export function createCommentVNode( |
| 778 | text: string = '', |
| 779 | // when used as the v-else branch, the comment node must be created as a |
| 780 | // block to ensure correct updates. |
| 781 | asBlock: boolean = false, |
| 782 | ): VNode { |
| 783 | return asBlock |
| 784 | ? (openBlock(), createBlock(Comment, null, text)) |
| 785 | : createVNode(Comment, null, text) |
| 786 | } |
| 787 | |
| 788 | export function normalizeVNode(child: VNodeChild): VNode { |
| 789 | if (child == null || typeof child === 'boolean') { |