mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-07-01 17:43:23 +08:00
chore: update
This commit is contained in:
@ -323,7 +323,9 @@ export const isConstant = (
|
||||
isConstant((property as any).value)
|
||||
);
|
||||
}
|
||||
if (!t.isTemplateLiteral(node) && t.isLiteral(node)) {
|
||||
if (
|
||||
t.isTemplateLiteral(node) ? !node.expressions.length : t.isLiteral(node)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user