Skip to content

Commit da5ca8e

Browse files
author
Rahul Mahato
committed
Fix: Added traverse for If condition blocks
1 parent 440e86c commit da5ca8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/platforms/vue-native/compiler/native.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ function traverse(ast, options, importObj, parent = null, childIndex) {
6868
}
6969
if (ast.children) {
7070
ast.children.forEach((child, index) => {
71+
if (child.ifConditions) {
72+
child.ifConditions.forEach((condition, conditionIdx) => {
73+
traverse(condition.block, options, importObj, child, conditionIdx)
74+
})
75+
}
7176
traverse(child, options, importObj, ast, index)
7277
})
7378
}

0 commit comments

Comments
 (0)