fix(54411): Compiled code contain jsx code (#54425)

This commit is contained in:
Oleksandr T
2023-06-01 21:01:25 +03:00
committed by GitHub
parent 23d48364e4
commit b03926ea78
5 changed files with 49 additions and 1 deletions

View File

@@ -480,7 +480,7 @@ export function transformJsx(context: TransformationContext): (x: SourceFile | B
continue;
}
finishObjectLiteralIfNeeded();
expressions.push(attr.expression);
expressions.push(Debug.checkDefined(visitNode(attr.expression, visitor, isExpression)));
continue;
}
properties.push(transformJsxAttributeToObjectLiteralElement(attr));