From c43548a3b7eb56fbb5c15412646788db44199694 Mon Sep 17 00:00:00 2001 From: Salakar Date: Mon, 3 Sep 2018 17:33:44 +0100 Subject: [PATCH] update babel.config to make use of presets new `flow` option --- babel.config.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/babel.config.js b/babel.config.js index 382fd679..eaf678de 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,12 +1,24 @@ module.exports = { env: { development: { - presets: ['module:metro-react-native-babel-preset'], - plugins: ['transform-flow-strip-types'], + presets: [ + [ + '@invertase/react-native-syntax', + { + flow: 'comment', + }, + ], + ], }, publish: { - presets: ['@invertase/react-native-syntax'], - plugins: ['transform-flow-strip-types'], + presets: [ + [ + '@invertase/react-native-syntax', + { + flow: 'strip', + }, + ], + ], }, }, };