Skip to content

Commit 663e8ca

Browse files
committed
fix: metro config issue
1 parent 1fb79a0 commit 663e8ca

File tree

3 files changed

+16
-225
lines changed

3 files changed

+16
-225
lines changed

example/metro.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@
77

88
const path = require('path');
99

10-
const exclusionList = (() => {
11-
try {
12-
return require('metro-config/src/defaults/exclusionList');
13-
} catch (_) {
14-
// `blacklist` was renamed to `exclusionList` in 0.60
15-
return require('metro-config/src/defaults/blacklist');
16-
}
17-
})();
18-
19-
const {makeMetroConfig} = require('@rnx-kit/metro-config');
10+
const {makeMetroConfig, exclusionList} = require('@rnx-kit/metro-config');
2011
const MetroSymlinksResolver = require('@rnx-kit/metro-resolver-symlinks');
2112

2213
const symlinkResolver = MetroSymlinksResolver();

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dependencies": {
1919
"hermes-engine": "0.10.0",
20-
"react": "16.13.1",
20+
"react": "17.0.2",
2121
"react-native": "0.63.4",
2222
"react-native-macos": "^0.63.0",
2323
"react-native-windows": "^0.63.0"
@@ -28,7 +28,7 @@
2828
"metro-react-native-babel-preset": "0.77.0",
2929
"mkdirp": "^3.0.1",
3030
"react-native-test-app": "1.4.6",
31-
"react-test-renderer": "16.13.1",
31+
"react-test-renderer": "17.0.2",
3232
"@rnx-kit/metro-config": "1.3.7",
3333
"@rnx-kit/metro-resolver-symlinks":"0.1.30"
3434
},

pnpm-lock.yaml

Lines changed: 13 additions & 213 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)