We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fba4e04 commit 8d3f0c8Copy full SHA for 8d3f0c8
1 file changed
src/babel/core/get-foreign-bindings.ts
@@ -1,5 +1,5 @@
1
-import * as t from '@babel/types';
2
import type * as babel from '@babel/core';
+import * as t from '@babel/types';
3
4
function isForeignBinding(
5
source: babel.NodePath,
@@ -35,7 +35,7 @@ export function getForeignBindings(path: babel.NodePath): t.Identifier[] {
35
ReferencedIdentifier(p) {
36
// Check identifiers that aren't in a TS expression
37
if (!isInTypescript(p) && isForeignBinding(path, p, p.node.name)) {
38
- if (p.isIdentifier() || p.parentPath.isJSXMemberExpression()) {
+ if (p.isIdentifier()) {
39
identifiers.add(p.node.name);
40
}
41
0 commit comments