Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Exit out of the entire import for type annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Dec 16, 2016
1 parent eb0dca6 commit 965ae79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -76,9 +76,9 @@ export default function lodash({ types }) {
const binding = file.scope.getBinding(local);
const { importKind = 'value' } = binding.path.parent;

// Skip type annotation specifiers.
// Skip type annotation imports.
if (importKind != 'value') {
return;
return false;
}
const isChain = isLodash && imported == 'chain';

Expand Down

0 comments on commit 965ae79

Please sign in to comment.