Skip to content

Commit b4eabb5

Browse files
committed
update config
1 parent af30904 commit b4eabb5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

vnext/template/metro.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const config = {
4747
experimentalImportSupport: false,
4848
inlineRequires: true,
4949
},
50+
unstable_disableES6Transforms: true,
5051
}),
5152
},
5253
};

vnext/templates/cpp-app/metro.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const config = {
4747
experimentalImportSupport: false,
4848
inlineRequires: true,
4949
},
50+
unstable_disableES6Transforms: true,
5051
}),
5152
},
5253
};

vnext/templates/cpp-lib/example/metro.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const config = {
3333
// We need to make sure that only one version is loaded for peerDependencies
3434
// So we block them at the root, and alias them to the versions in example's node_modules
3535
resolver: {
36-
blacklistRE: exclusionList(
36+
blockList: exclusionList(
3737
modules.map(
3838
(m) =>
39-
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`)
39+
new RegExp(`^${escape(path.join(root, 'node_modules', m))}\/.*$`)
4040
).concat([
4141
// This stops "npx @react-native-community/cli run-windows" from causing the metro server to crash if its already running
4242
new RegExp(
@@ -67,6 +67,7 @@ const config = {
6767
experimentalImportSupport: false,
6868
inlineRequires: true,
6969
},
70+
unstable_disableES6Transforms: true,
7071
}),
7172
},
7273
};

0 commit comments

Comments
 (0)