convert property key to computed before checking if it's a displayName property in the react transformer builder - closes #1671
This commit is contained in:
@@ -161,7 +161,8 @@ export default function (exports, opts) {
|
||||
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
var prop = props[i];
|
||||
if (t.isIdentifier(prop.key, { name: "displayName" })) {
|
||||
var key = t.toComputedKey(prop);
|
||||
if (t.isLiteral(key, { value: "displayName" })) {
|
||||
safe = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user