mirror of
https://github.com/status-im/metro.git
synced 2025-02-11 18:47:20 +00:00
Summary: I'd like to get rid of the function as blacklist, because it's impossible to process properly at the `jest-haste-map` level (https://github.com/facebook/jest/pull/4047). The reason we use a function in Metro bundler is because we excludes all the `__tests__` modules. However, I removed this exclusion completely, and I could build our package without any problem and with no difference in the final bundle. I can only assume, then, that this line is only here for slightly increasing performance. Therefore, I think it's reasonnable to move it as part of the default blacklist shipped with Metro bundler instead. Reviewed By: cpojer Differential Revision: D5434351 fbshipit-source-id: dea39f6299985143d25fcb3b7b365d793acd64a9