Skip to content

Commit 4e47c5f

Browse files
committed
chore: update
1 parent 37057c4 commit 4e47c5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/babel-plugin-jsx/src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ export const isConstant = (
323323
isConstant((property as any).value)
324324
);
325325
}
326-
if (!t.isTemplateLiteral(node) && t.isLiteral(node)) {
326+
if (
327+
t.isTemplateLiteral(node) ? !node.expressions.length : t.isLiteral(node)
328+
) {
327329
return true;
328330
}
329331
return false;

0 commit comments

Comments
 (0)