.babelrc overrides test not called for every file #20088
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Environment
Description
The
overrides
block of.babelrc
doesn't seem to be respected for files innode_modules/
. I'm trying to apply one config for.ts
files, and another one for all other files. Unfortunately, it seems like the overrides block isn't called at all when transpiling e.g. the react-native lib itself.Reproducible Demo
Create an empty React Native project, and replace the
.babelrc
with this.babelrc.js
file:When bundling you can observe the problem by seeing this error message instead of a successful build:
As that file name did not end with
.ts
or.tsx
it should have gotten the preset with the Flow plugin, but alas it didn't.Opening up the
babel.log
file we can see that there are only entries forindex.js
andApp.js
. No entries for e.g.node_modules/react-native/Libraries/Lists/FlatList.js
.The text was updated successfully, but these errors were encountered: