Skip to content

Commit 8d3f0c8

Browse files
committed
Fix dependency generation
1 parent fba4e04 commit 8d3f0c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/babel/core/get-foreign-bindings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as t from '@babel/types';
21
import type * as babel from '@babel/core';
2+
import * as t from '@babel/types';
33

44
function isForeignBinding(
55
source: babel.NodePath,
@@ -35,7 +35,7 @@ export function getForeignBindings(path: babel.NodePath): t.Identifier[] {
3535
ReferencedIdentifier(p) {
3636
// Check identifiers that aren't in a TS expression
3737
if (!isInTypescript(p) && isForeignBinding(path, p, p.node.name)) {
38-
if (p.isIdentifier() || p.parentPath.isJSXMemberExpression()) {
38+
if (p.isIdentifier()) {
3939
identifiers.add(p.node.name);
4040
}
4141
}

0 commit comments

Comments
 (0)