forked from leanhtuan1994/react-native-template-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
31 lines (31 loc) · 802 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
30
31
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['.'],
alias: {
'@app': './app',
'@assets/*': './assets/*',
'@images': './assets/images',
'@navigation': './app/navigation',
'@screens': './app/screens',
'@utils': './app/utils',
'@translations': './app/utils/translations',
'@languages': './languages',
'@styles': './app/styles',
'@components': './app/components',
'@constant': './app/constant',
'@context': './app/context',
},
},
],
['react-native-reanimated/plugin'],
],
env: {
production: {
plugins: ['transform-remove-console'],
},
},
};