mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-04-23 18:12:33 +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)
|
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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user