We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b38cae9 commit 72bb72dCopy full SHA for 72bb72d
packages/react-native-builder-bob/src/babel.ts
@@ -31,12 +31,23 @@ const isModule = (filename: string, ext: string): boolean => {
31
32
// Metro won't resolve these extensions if explicit extension is provided
33
// So we can't add extension to these files
34
- const additional = ['native', 'android', 'ios', 'web'];
+ const platforms = [
35
+ 'native',
36
+ 'android',
37
+ 'ios',
38
+ 'windows',
39
+ 'macos',
40
+ 'visionos',
41
+ 'web',
42
+ 'tv',
43
+ 'android.tv',
44
+ 'ios.tv',
45
+ ];
46
47
return exts.some(
48
(ext) =>
49
isFile(`${filename}.${ext}`) &&
- additional.every((add) => !isFile(`${filename}.${add}.${ext}`))
50
+ platforms.every((platform) => !isFile(`${filename}.${platform}.${ext}`))
51
);
52
};
53
0 commit comments