-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
52 lines (52 loc) · 1.29 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
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
esmodules: true,
},
},
],
'@babel/preset-typescript',
'module:metro-react-native-babel-preset',
],
plugins: [
[
'module-resolver',
{
root: ['./src'],
extensions: ['.js', '.ts', '.ios.js', '.android.js', '.png'],
alias: {
icons: './icons',
images: './images',
config: './src/config',
contants: './src/contants',
containers: './src/containers',
components: './src/components',
navigators: './src/navigators',
types: './src/types',
actions: './src/actions',
api: './src/api',
reducers: './src/reducers',
constants: './src/constants',
sagas: './src/sagas',
infrastructure: './src/infrastructure',
selectors: './src/selectors',
utils: './src/utils',
translations: './src/translations',
services: './src/services',
forms: './src/forms',
middlewares: './src/middlewares',
generated: './src/generated',
src: './src',
},
},
],
],
env: {
production: {
plugins: ['transform-remove-console'],
},
},
};