1
0
mirror of https://github.com/tooot-app/app synced 2024-12-15 18:58:43 +01:00
tooot/babel.config.js
2020-12-13 21:09:21 +01:00

24 lines
518 B
JavaScript

module.exports = function (api) {
api.cache(true)
return {
presets: ['babel-preset-expo'],
plugins: [
['@babel/plugin-proposal-optional-chaining'],
[
'module-resolver',
{
root: ['./'],
alias: {
'@assets': './assets',
'@root': './src',
'@api': './src/api',
'@components': './src/components',
'@screens': './src/screens',
'@utils': './src/utils'
}
}
]
]
}
}