-
Notifications
You must be signed in to change notification settings - Fork 34
/
babel.config.js
39 lines (39 loc) · 1.1 KB
/
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
30
31
32
33
34
35
36
37
38
39
module.exports = api => {
api.cache(true);
return {
presets: ['module:metro-react-native-babel-preset'],
env: {
production: {
plugins: ['transform-remove-console'],
},
},
plugins: [
'@babel/plugin-transform-runtime',
[
'module-resolver',
{
root: ['.'],
alias: {
'@components': './src/components',
'@api': './src/api',
'@services': './src/services',
'@navigation': './src/navigation',
'@images': './src/assets/images',
'@lottie': './src/assets/lottie',
'@flags': './src/assets/flags',
'@svg': './src/assets/svg',
'@audio': './src/assets/audio',
'@constants': './src/constants',
'@screens': './src/screens',
'@store': './src/store',
'@translations': './src/translations',
'@utils': './src/utils',
'@hooks': './src/hooks',
},
},
],
['react-native-reanimated/plugin'],
],
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],
};
};