-
Notifications
You must be signed in to change notification settings - Fork 3
/
babel.config.js
29 lines (29 loc) · 881 Bytes
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
presets: [
'module:metro-react-native-babel-preset',
'module:react-native-dotenv',
],
plugins: [
[
require.resolve('babel-plugin-module-resolver'),
{
extensions: ['.js', '.ios.js', '.android.js', '.json', '.ts', '.tsx'],
root: ['./'],
alias: {
'@assets': ['./src/assets'],
'@components': ['./src/components'],
'@lib': ['./src/lib'],
'@hooks': ['./src/lib/hooks'],
'@i18n': ['./src/lib/i18n'],
'@navigation': ['./src/navigation'],
'@services': ['./src/services'],
'@theme': ['./src/theme'],
'@views': ['./src/views'],
'@models': ['./src/models'],
'@repositories': ['./src/repositories'],
},
},
],
[require.resolve('@babel/plugin-proposal-decorators'), {legacy: true}],
],
};