mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-01-10 08:19:10 +08:00
chore: update
This commit is contained in:
parent
37057c4f4a
commit
4e47c5fc04
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user