forked from Comm-M459/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
36 lines (34 loc) · 1004 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
32
33
34
35
36
module.exports = function (api) {
api.cache(true)
const plugins = [
[
'module-resolver',
{
alias: {
'@api': './mobile-app/app/api',
'@assets': './shared/assets',
'@constants': './mobile-app/app/constants',
'@contexts': './mobile-app/app/contexts',
'@components': './mobile-app/app/components',
'@environment': './shared/environment',
'@hooks': './mobile-app/app/hooks',
'@shared-api': './shared/api',
'@shared-contexts': './shared/contexts',
'@shared-types': './shared/types',
'@screens': './mobile-app/app/screens',
'@store': './shared/store',
'@translations': './shared/translations',
'@tailwind': './mobile-app/app/tailwind'
}
}
],
'react-native-reanimated/plugin'
]
if (process.env.CYPRESS_E2E) {
plugins.push('istanbul')
}
return {
presets: ['babel-preset-expo'],
plugins: plugins
}
}