Skip to content

Commit

Permalink
fix: support rewriting .js extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jul 4, 2024
1 parent 3780ba9 commit ee378e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-builder-bob/src/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const isDirectory = (filename: string): boolean => {
};

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

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

0 comments on commit ee378e1

Please sign in to comment.