forked from Koniverse/SubWallet-Mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
44 lines (44 loc) · 1.08 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
module.exports = {
plugins: [
[
'rewrite-require',
{
aliases: {
vm: 'vm-browserify',
},
},
],
[
'module-resolver',
{
alias: {
assets: './src/assets',
components: './src/components',
constants: './src/constants',
hooks: './src/hooks',
messaging: './src/messaging',
providers: './src/providers',
screens: './src/screens',
stores: './src/stores',
styles: './src/styles',
types: './src/types',
utils: './src/utils',
services: './src/services',
reducers: './src/reducers',
routes: './src/routes',
},
root: ['.'],
},
],
['@babel/plugin-transform-class-static-block'],
['@babel/plugin-transform-flow-strip-types'],
['@babel/plugin-transform-private-methods', { loose: true }],
'react-native-reanimated/plugin',
],
presets: ['module:metro-react-native-babel-preset'],
env: {
production: {
plugins: ['transform-remove-console'],
},
},
};