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

Commit 965ae79

Browse files
committed
Exit out of the entire import for type annotations.
1 parent eb0dca6 commit 965ae79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ export default function lodash({ types }) {
7676
const binding = file.scope.getBinding(local);
7777
const { importKind = 'value' } = binding.path.parent;
7878

79-
// Skip type annotation specifiers.
79+
// Skip type annotation imports.
8080
if (importKind != 'value') {
81-
return;
81+
return false;
8282
}
8383
const isChain = isLodash && imported == 'chain';
8484

0 commit comments

Comments
 (0)