Skip to content

Commit

Permalink
Skip Flow types imports from capturing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmalov committed Oct 5, 2019
1 parent d0fba06 commit 67ff5b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ExportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ ExportMap.parse = function (path, content, context) {

function captureDependency(declaration) {
if (declaration.source == null) return null
if (declaration.importKind === 'type') return null // skip Flow type imports
const importedSpecifiers = new Set()
const supportedTypes = new Set(['ImportDefaultSpecifier', 'ImportNamespaceSpecifier'])
if (declaration.specifiers) {
Expand Down

0 comments on commit 67ff5b8

Please sign in to comment.