Skip to content

Commit

Permalink
Merge pull request #603 from RakeshUP/JSX-file-extension
Browse files Browse the repository at this point in the history
feat: Support JSX file extension
  • Loading branch information
mathisonian authored Dec 30, 2019
2 parents a39c7ec + c4d198b commit d455bd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/idyll-cli/src/resolvers/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ class ComponentResolver {
if (resolved) return;

// Otherwise check to see if this is a custom component (in a component directory).
resolved = this.componentsMap.get(name + '.js');
resolved =
this.componentsMap.get(name + '.js') ||
this.componentsMap.get(name + '.jsx');
if (resolved) {
resolved = slash(resolved);
return;
Expand Down

0 comments on commit d455bd3

Please sign in to comment.