Skip to content

Commit 7923804

Browse files
rh389facebook-github-bot
authored andcommitted
Use newer metro language: blacklistRE -> blockList (#30342)
Summary: An [update to `metro`](facebook/metro@94c0b54#diff-1a3c1a959bb8c4e2e9743c03cb7a6d0c56648ffcfe129a11b9090bfc139622dd) which landed in metro 0.60 (RN 0.64+) deprecates the config `blacklistRE`, renaming it to `blockList`. Although the former is still supported it now generates a deprecation warning. ## Changelog [General] [Fixed] - Update metro config language to `blockList` Pull Request resolved: #30342 Test Plan: Confirm that the config is still respected (`/buck-out/` should be excluded), and that no deprecation warning is issued. Reviewed By: lunaleaps Differential Revision: D31380163 Pulled By: motiz88 fbshipit-source-id: f64cff30690f0252fafd4eac254a8c2278c4ac2f
1 parent 93beb83 commit 7923804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metro.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getPolyfills = require('./rn-get-polyfills');
1919
module.exports = {
2020
resolver: {
2121
// $FlowFixMe[signature-verification-failure] Can't infer RegExp type.
22-
blacklistRE: /buck-out/,
22+
blockList: /buck-out/,
2323
extraNodeModules: {
2424
'react-native': __dirname,
2525
},

0 commit comments

Comments
 (0)