update babel.config to make use of presets new `flow` option
This commit is contained in:
parent
3b52bbc8c5
commit
c43548a3b7
|
@ -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',
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue