switch to new format `babel.config.js` file

This commit is contained in:
Salakar 2018-09-03 13:12:42 +01:00
parent e7a2bece9a
commit 1df6b622ec
2 changed files with 12 additions and 16 deletions

View File

@ -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"
]
}
}
}

12
babel.config.js Normal file
View File

@ -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'],
},
},
};