Skip to content

Commit 0afb462

Browse files
committedJan 30, 2020
(fix): check for JSX extension for entry files
- previously, TS, TSX, and JS were checked, but not JSX
1 parent f12fcdf commit 0afb462

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ async function jsOrTs(filename: string) {
7575
? '.ts'
7676
: (await isFile(resolveApp(filename + '.tsx')))
7777
? '.tsx'
78+
: (await isFile(resolveApp(filename + '.jsx')))
79+
? '.jsx'
7880
: '.js';
7981

8082
return resolveApp(`${filename}${extension}`);

0 commit comments

Comments
 (0)