Skip to content

Commit c49fb0e

Browse files
committed
chore(example): update metro.config.
1 parent fead162 commit c49fb0e

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

example/metro.config.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33
* https://github.com/facebook/react-native
44
*/
55

6+
const path = require('path');
7+
68
module.exports = {
7-
transformer: {
8-
getTransformOptions: async () => ({
9-
transform: {
10-
experimentalImportSupport: false,
11-
inlineRequires: true,
12-
},
13-
}),
9+
// workaround for an issue with symlinks encountered starting with
10+
// metro@0.55 / React Native 0.61
11+
// (not needed with React Native 0.60 / metro@0.54)
12+
resolver: {
13+
extraNodeModules: new Proxy(
14+
{},
15+
{get: (_, name) => path.resolve('.', 'node_modules', name)},
16+
),
1417
},
18+
19+
// quick workaround for another issue with symlinks
20+
watchFolders: ['.', '..'],
1521
};

0 commit comments

Comments
 (0)