Skip to content

Commit 89afc07

Browse files
committed
🐛 fix resolution order and JSX support
1 parent ff272a0 commit 89afc07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ type Resolution = {
1414

1515
const resolutions: Resolution[] = [
1616
{
17-
matcher: /\.js$/i,
18-
extensions: ['.ts', '.tsx'],
17+
matcher: /\.jsx?$/i,
18+
extensions: ['.tsx', '.ts'],
1919
},
2020
{
2121
matcher: /\.mjs$/i,

0 commit comments

Comments
 (0)