Skip to content

Commit ee378e1

Browse files
committed
fix: support rewriting .js extensions
1 parent 3780ba9 commit ee378e1

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native-builder-bob/src

1 file changed

+1
-1
lines changed

packages/react-native-builder-bob/src/babel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const isDirectory = (filename: string): boolean => {
2727
};
2828

2929
const isModule = (filename: string, ext: string): boolean => {
30-
const exts = ['ts', 'tsx', ext];
30+
const exts = ['.js', '.ts', '.jsx', '.tsx', ext];
3131

3232
// Metro won't resolve these extensions if explicit extension is provided
3333
// So we can't add extension to these files

0 commit comments

Comments
 (0)