Skip to content

Commit 68f6e96

Browse files
committed
Fix dependency generation for granular mode
1 parent 1defacb commit 68f6e96

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/babel/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ function getBindings(path: babel.NodePath): t.Identifier[] {
229229
ReferencedIdentifier(p) {
230230
// Check identifiers that aren't in a TS expression
231231
if (!isInTypescript(p) && isForeignBinding(path, p, p.node.name)) {
232-
identifiers.add(p.node.name);
232+
if (p.isIdentifier() || p.parentPath.isJSXMemberExpression()) {
233+
identifiers.add(p.node.name);
234+
}
233235
}
234236
},
235237
});

0 commit comments

Comments
 (0)