Skip to content

Commit

Permalink
Use newer metro language: blacklistRE -> blockList (#30342)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rh389 authored and facebook-github-bot committed Oct 5, 2021
1 parent 93beb83 commit 7923804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const getPolyfills = require('./rn-get-polyfills');
module.exports = {
resolver: {
// $FlowFixMe[signature-verification-failure] Can't infer RegExp type.
blacklistRE: /buck-out/,
blockList: /buck-out/,
extraNodeModules: {
'react-native': __dirname,
},
Expand Down

0 comments on commit 7923804

Please sign in to comment.