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 = {
|
module.exports = {
|
||||||
env: {
|
env: {
|
||||||
development: {
|
development: {
|
||||||
presets: ['module:metro-react-native-babel-preset'],
|
presets: [
|
||||||
plugins: ['transform-flow-strip-types'],
|
[
|
||||||
|
'@invertase/react-native-syntax',
|
||||||
|
{
|
||||||
|
flow: 'comment',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
},
|
},
|
||||||
publish: {
|
publish: {
|
||||||
presets: ['@invertase/react-native-syntax'],
|
presets: [
|
||||||
plugins: ['transform-flow-strip-types'],
|
[
|
||||||
|
'@invertase/react-native-syntax',
|
||||||
|
{
|
||||||
|
flow: 'strip',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue