We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1defacb commit 68f6e96Copy full SHA for 68f6e96
1 file changed
src/babel/index.ts
@@ -229,7 +229,9 @@ function getBindings(path: babel.NodePath): t.Identifier[] {
229
ReferencedIdentifier(p) {
230
// Check identifiers that aren't in a TS expression
231
if (!isInTypescript(p) && isForeignBinding(path, p, p.node.name)) {
232
- identifiers.add(p.node.name);
+ if (p.isIdentifier() || p.parentPath.isJSXMemberExpression()) {
233
+ identifiers.add(p.node.name);
234
+ }
235
}
236
},
237
});
0 commit comments