Skip to content

Commit 2c6e55a

Browse files
committed
Resolve JSX identifiers to module imports (see #93)
1 parent 23aa0fe commit 2c6e55a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/resolveToModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default function resolveToModule(path: NodePath): ?string {
3636
}
3737
return resolveToModule(path.get('callee'));
3838
case types.Identifier.name:
39+
case types.JSXIdentifier.name:
3940
var valuePath = resolveToValue(path);
4041
if (valuePath !== path) {
4142
return resolveToModule(valuePath);

0 commit comments

Comments
 (0)