Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swandir committed Mar 29, 2022
1 parent 5454591 commit e072ba9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-traverse/src/path/introspection.ts
Expand Up @@ -181,7 +181,9 @@ export function referencesImport(
): boolean {
if (!this.isReferencedIdentifier()) {
if (
(this.isMemberExpression() || this.isOptionalMemberExpression()) &&
(this.isMemberExpression() ||
this.isJSXMemberExpression() ||
this.isOptionalMemberExpression()) &&
(this.node.computed
? isStringLiteral(this.node.property, { value: importName })
: (this.node.property as t.Identifier).name === importName)
Expand Down

0 comments on commit e072ba9

Please sign in to comment.