1
0
mirror of https://github.com/tooot-app/app synced 2024-12-22 15:49:42 +01:00
tooot/babel.config.js

28 lines
649 B
JavaScript
Raw Normal View History

2020-10-23 09:22:17 +02:00
module.exports = function (api) {
2022-12-23 17:47:01 +01:00
api.cache(false)
2021-03-13 18:27:44 +01:00
2023-06-21 23:05:40 +02:00
return {
presets: ['babel-preset-expo'],
plugins: [
'@babel/plugin-proposal-optional-chaining',
[
'module-resolver',
{
root: ['./'],
alias: {
'@components': './src/components',
'@i18n': './src/i18n',
'@screens': './src/screens',
'@utils': './src/utils'
}
2022-12-24 14:46:39 +01:00
}
2023-06-21 23:05:40 +02:00
]
].concat(
process.env.NODE_ENV === 'production' || process.env.BABEL_ENV === 'production'
? ['transform-remove-console']
: [],
['react-native-reanimated/plugin']
)
2021-03-13 18:27:44 +01:00
}
2020-10-23 09:22:17 +02:00
}