tooot/babel.config.js

25 lines
556 B
JavaScript
Raw Normal View History

2020-10-23 09:22:17 +02:00
module.exports = function (api) {
api.cache(true)
2020-10-20 10:28:42 +02:00
return {
2020-11-22 01:13:13 +01:00
presets: ['babel-preset-expo'],
2020-10-23 09:22:17 +02:00
plugins: [
'@babel/plugin-proposal-optional-chaining',
2020-10-23 09:22:17 +02:00
[
'module-resolver',
{
2020-12-13 14:04:25 +01:00
root: ['./'],
2020-10-23 09:22:17 +02:00
alias: {
2020-12-13 21:09:21 +01:00
'@assets': './assets',
2020-12-13 14:04:25 +01:00
'@root': './src',
'@api': './src/api',
'@components': './src/components',
'@screens': './src/screens',
'@utils': './src/utils'
2020-10-23 09:22:17 +02:00
}
}
],
'react-native-reanimated/plugin'
2020-10-23 09:22:17 +02:00
]
}
}