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-17 23:57:23 +01:00
|
|
|
presets: [
|
|
|
|
'babel-preset-expo',
|
|
|
|
// {
|
|
|
|
// runtime: 'automatic',
|
|
|
|
// development: process.env.NODE_ENV === 'development',
|
|
|
|
// importSource: '@welldone-software/why-did-you-render'
|
|
|
|
// }
|
|
|
|
],
|
2020-10-23 09:22:17 +02:00
|
|
|
plugins: [
|
2020-10-25 01:35:41 +02:00
|
|
|
['@babel/plugin-proposal-optional-chaining'],
|
2020-10-23 09:22:17 +02:00
|
|
|
[
|
|
|
|
'module-resolver',
|
|
|
|
{
|
|
|
|
alias: {
|
|
|
|
src: './src'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|