switch to new format `babel.config.js` file
This commit is contained in:
parent
e7a2bece9a
commit
1df6b622ec
16
.babelrc
16
.babelrc
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"env": {
|
||||
"development": {
|
||||
"presets": ["react-native"],
|
||||
"plugins": [
|
||||
"transform-flow-strip-types"
|
||||
]
|
||||
},
|
||||
"publish": {
|
||||
"presets": ["@invertase/react-native-syntax"],
|
||||
"plugins": [
|
||||
"transform-flow-strip-types"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
development: {
|
||||
presets: ['module:metro-react-native-babel-preset'],
|
||||
plugins: ['transform-flow-strip-types'],
|
||||
},
|
||||
publish: {
|
||||
presets: ['@invertase/react-native-syntax'],
|
||||
plugins: ['transform-flow-strip-types'],
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue