Skip to content

Commit 67a07bd

Browse files
authored
(fix): check for JSX extension for entry files (#474)
- previously, TS, TSX, and JS were checked, but not JSX
1 parent 1a7d816 commit 67a07bd

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)