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 ebf4880 commit 78a3b69Copy full SHA for 78a3b69
compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts
@@ -3081,7 +3081,12 @@ function isReorderableExpression(
3081
return true;
3082
}
3083
3084
- case 'TSInstantiationExpression':
+ case 'TSInstantiationExpression': {
3085
+ const innerExpr = (expr as NodePath<t.TSInstantiationExpression>).get(
3086
+ 'expression',
3087
+ ) as NodePath<t.Expression>;
3088
+ return isReorderableExpression(builder, innerExpr, allowLocalIdentifiers);
3089
+ }
3090
case 'RegExpLiteral':
3091
case 'StringLiteral':
3092
case 'NumericLiteral':
0 commit comments