mirror of https://github.com/status-im/metro.git
metro-bundler: tweak babel-register callsite
This commit is contained in:
parent
b62669e2da
commit
d9847a1b91
|
@ -13,6 +13,10 @@ require('./setupNodePolyfills');
|
|||
var _only = [];
|
||||
|
||||
function registerOnly(onlyList) {
|
||||
// This prevents `babel-register` from transforming the code of the
|
||||
// plugins/presets that we are require-ing themselves before setting up the
|
||||
// actual config.
|
||||
require('babel-register')({only: [], babelrc: false});
|
||||
require('babel-register')(config(onlyList));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue