feat(compiler): optimize text by merging adjacent nodes
This commit is contained in:
@@ -29,7 +29,7 @@ export const transformIf = createStructuralDirectiveTransform(
|
||||
})
|
||||
} else {
|
||||
// locate the adjacent v-if
|
||||
const siblings = context.parent.children
|
||||
const siblings = context.parent!.children
|
||||
const comments = []
|
||||
let i = siblings.indexOf(node as any)
|
||||
while (i-- >= -1) {
|
||||
|
||||
Reference in New Issue
Block a user