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

Commit 102f0f6

Browse files
committed
Exit after clearing tracked imports.
1 parent a0c1916 commit 102f0f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ export default function lodash({ types }) {
5050
const { ids } = _.assign(mapping, config(state.opts));
5151
const { file } = path.hub;
5252

53-
if (_.isEmpty(ids)) {
54-
return;
55-
}
5653
// Clear tracked method imports.
5754
importModule.cache.clear();
5855
store.clear();
5956

57+
if (_.isEmpty(ids)) {
58+
return;
59+
}
6060
// Populate module paths per package.
6161
_.each(ids, id => {
6262
store.set(id);

0 commit comments

Comments
 (0)