From 1df6b622ece6a3150fc63216ac41fd158a1b9175 Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 3 Sep 2018 13:12:42 +0100 Subject: [PATCH] switch to new format `babel.config.js` file --- .babelrc | 16 ---------------- babel.config.js | 12 ++++++++++++ 2 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 .babelrc create mode 100644 babel.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 9dc15740..00000000 --- a/.babelrc +++ /dev/null @@ -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" - ] - } - } -} diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 00000000..382fd679 --- /dev/null +++ b/babel.config.js @@ -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'], + }, + }, +};