Skip to content

Commit

Permalink
(fix): check for JSX extension for entry files
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 committed Jan 30, 2020
1 parent f12fcdf commit 0afb462
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 0afb462

Please sign in to comment.