Skip to content

Commit

Permalink
[fix] no-unused-modules: make import { name as otherName } work
Browse files Browse the repository at this point in the history
  • Loading branch information
rfermann committed Apr 23, 2019
1 parent 174afbb commit 1db357e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ ExportMap.parse = function (path, content, context) {
importedSpecifiers.add(specifier.type)
}
if (specifier.type === 'ImportSpecifier') {
importedSpecifiers.add(specifier.local.name)
importedSpecifiers.add(specifier.imported.name)
}
})
}
Expand Down

0 comments on commit 1db357e

Please sign in to comment.