We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c772a92 commit f24e282Copy full SHA for f24e282
src/utils/getPropertyName.js
@@ -29,7 +29,10 @@ export default function getPropertyName(propertyPath: NodePath): ?string {
29
const key = propertyPath.get('key');
30
31
// Try to resolve variables and member expressions
32
- if (types.Identifier.check(key.node) || types.MemberExpression.check(key.node)) {
+ if (
33
+ types.Identifier.check(key.node) ||
34
+ types.MemberExpression.check(key.node)
35
+ ) {
36
const value = resolveToValue(key).node;
37
38
if (
0 commit comments