diff --git a/packages/babel-plugin-jsx/src/utils.ts b/packages/babel-plugin-jsx/src/utils.ts index 6e1d24d..d1c35b6 100644 --- a/packages/babel-plugin-jsx/src/utils.ts +++ b/packages/babel-plugin-jsx/src/utils.ts @@ -323,7 +323,7 @@ export const isConstant = ( isConstant((property as any).value) ); } - if (t.isLiteral(node)) { + if (t.isLiteral(node) && !t.isTemplateLiteral(node)) { return true; } return false;