chore: update
ci / test (push) Has been cancelled Details
ci / continuous-release (push) Has been cancelled Details

This commit is contained in:
daiwei 2025-10-09 14:23:30 +08:00
parent b2c11e4c68
commit 4570da0c38
1 changed files with 1 additions and 2 deletions

View File

@ -124,8 +124,7 @@ function adoptTemplateImpl(node: Node, template: string): Node | null {
isComment(node, ']') && isComment(node, ']') &&
isComment(node.previousSibling!, '[') isComment(node.previousSibling!, '[')
) { ) {
const parent = parentNode(node)! node.before((node = createTextNode()))
node = parent.insertBefore(createTextNode(), node)
break break
} }
} }