Skip to content

Commit

Permalink
(fix): JSX extension should be valid for entry files
Browse files Browse the repository at this point in the history
- TS, TSX, and JS were already supported, but not JSX
  • Loading branch information
agilgur5 committed Jan 30, 2020
1 parent f12fcdf commit 9ecfc60
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 9ecfc60

Please sign in to comment.