Skip to content

Commit d2b93ab

Browse files
committed
test
1 parent c8e8cd7 commit d2b93ab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/JSXProcessor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ const jsxToAST = (node: ts.Node) => {
7979
node.forEachChild((child) => {
8080
const txtChildNode = jsxToAST(child);
8181

82-
if (
83-
txtChildNode.type !== ASTNodeTypes.Str &&
84-
txtChildNode.children.length === 0
85-
) {
82+
if ("children" in txtChildNode && !txtChildNode.children.length) {
8683
return;
8784
}
8885

0 commit comments

Comments
 (0)