Skip to content

Commit bebd547

Browse files
committed
fix: add property needed to recursively traverse 'if' block
1 parent fc7b9d6 commit bebd547

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core-parts/finder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ export function findTargetClassNameNodes(ast: AST, options: ResolvedOptions): Cl
162162
recursiveProps = ['arguments'];
163163
break;
164164
}
165-
case 'ConditionalExpression': {
165+
case 'ConditionalExpression':
166+
case 'IfStatement': {
166167
recursiveProps = ['consequent', 'alternate'];
167168
break;
168169
}

0 commit comments

Comments
 (0)