mirror of
https://github.com/tooot-app/app
synced 2024-12-27 09:52:41 +01:00
1ea6aff328
* To MMKV migration working * POC migrated font size settings * Moved settings to mmkv * Fix typos * Migrated contexts slice * Migrated app slice * POC instance emoji update * Migrated drafts * Migrated simple instance properties * All migrated! * Re-structure files * Tolerant of undefined settings * Can properly logging in and out including empty state
27 lines
612 B
JavaScript
27 lines
612 B
JavaScript
module.exports = function (api) {
|
|
api.cache(false)
|
|
|
|
const plugins = [
|
|
'@babel/plugin-proposal-optional-chaining',
|
|
[
|
|
'module-resolver',
|
|
{
|
|
root: ['./'],
|
|
alias: {
|
|
'@components': './src/components',
|
|
'@i18n': './src/i18n',
|
|
'@screens': './src/screens',
|
|
'@utils': './src/utils'
|
|
}
|
|
}
|
|
],
|
|
'react-native-reanimated/plugin'
|
|
]
|
|
|
|
if (process.env.NODE_ENV === 'production' || process.env.BABEL_ENV === 'production') {
|
|
plugins.push('transform-remove-console')
|
|
}
|
|
|
|
return { presets: ['babel-preset-expo'], plugins }
|
|
}
|