Skip to content

Commit

Permalink
(fix): check for JSX extension for entry files (#474)
Browse files Browse the repository at this point in the history
- previously, TS, TSX, and JS were checked, but not JSX
  • Loading branch information
agilgur5 authored Feb 2, 2020
1 parent 1a7d816 commit 67a07bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ async function jsOrTs(filename: string) {
? '.ts'
: (await isFile(resolveApp(filename + '.tsx')))
? '.tsx'
: (await isFile(resolveApp(filename + '.jsx')))
? '.jsx'
: '.js';

return resolveApp(`${filename}${extension}`);
Expand Down

0 comments on commit 67a07bd

Please sign in to comment.