-
Notifications
You must be signed in to change notification settings - Fork 2
/
babel.config.js
34 lines (33 loc) · 938 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
process.env.TAMAGUI_TARGET = 'native';
process.env.VERSION = require('./package.json').version;
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
alias: {
'@app': './src',
'@assets': './assets',
'@shared': './src/shared',
'@features': './src/features',
'@screens': './src/screens',
'@entities': './src/entities',
'@jobs': './src/jobs',
'@images': './assets/images/index',
'@widgets': './src/widgets',
},
},
],
[
'transform-inline-environment-variables',
{
include: ['NODE_ENV', 'TAMAGUI_TARGET', 'VERSION'],
},
],
'@babel/plugin-proposal-export-namespace-from',
'react-native-reanimated/plugin',
],
};