We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e8cd7 commit d2b93abCopy full SHA for d2b93ab
src/JSXProcessor.ts
@@ -79,10 +79,7 @@ const jsxToAST = (node: ts.Node) => {
79
node.forEachChild((child) => {
80
const txtChildNode = jsxToAST(child);
81
82
- if (
83
- txtChildNode.type !== ASTNodeTypes.Str &&
84
- txtChildNode.children.length === 0
85
- ) {
+ if ("children" in txtChildNode && !txtChildNode.children.length) {
86
return;
87
}
88
0 commit comments