mobile_local_restore/babel.config.js

44 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-06-07 12:27:15 +00:00
module.exports = function (api) {
api.cache(true);
return {
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['.'],
extensions: [
'.ios.ts',
'.android.ts',
'.ts',
'.ios.tsx',
'.android.tsx',
'.tsx',
'.jsx',
'.js',
'.json',
],
alias: {
'@config': './src/config',
'@constants': './src/constants',
'@theme': './src/theme',
'@layout': './src/layout',
'@components': './src/components',
'@screens': './src/screens',
'@assets': './src/assets',
'@utils': './src/utils',
'@navigation': './src/navigation',
'@actions': './src/actions',
'@reducers': './src/reducers',
'@store': './src/store',
'@sagas': './src/sagas',
'@containers': './src/containers',
'@models': './src/models',
'@api': './src/api'
},
},
],
"react-native-reanimated/plugin",
],
};
};