mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-01-27 16:49:10 +08:00
fix: exclude TemplateLiteral expression from isConstant
This commit is contained in:
parent
1d6003c043
commit
f08cdcabfb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user