[Question] How I can redefine getEnableBabelRCLookup
prop for metro bundler?
#20315
Labels
Resolution: For Stack Overflow
A question for Stack Overflow. Applying this label will cause issue to be closed.
Resolution: Locked
This issue was locked by the bot.
Type: Invalid
This issue does not belong here. Applying this label will cause issue to be closed.
Question
How I can redefine
getEnableBabelRCLookup
prop for metro bundler?Why I need it
As I know,
mertro
bundler right now transpile all modules, including 3rd party libraries. But some of them already transpiled and has.babelrc
config with presets and plugins, that no independencies
. And whenmetro
try to transpile such module, it throws error for unknown plugin, for example, lib @dump247/storybook-state:It is not good to install all missing plugins or presets, so I want to disable
babelRCLookup
.What I've tried
I followed for Metro documentation.
Set
metro.config.js
in root of my projectbut it didn't work.
BTW doc is very poor :(
Versions
OS: Win10
Node: v8.9.4
NPM: v6.2.0
React Native: v0.55.4
Metro: v0.30.2
The text was updated successfully, but these errors were encountered: