-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbabel.config.js
46 lines (46 loc) · 1.19 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
module.exports = {
presets: ['module:@react-native/babel-preset', '@babel/preset-react'],
plugins: [
'nativewind/babel',
[
'module-resolver',
{
root: ['./'],
alias: {
'@fromnow': './libs/fromnow',
'@assets': './libs/fromnow/src/assets',
'@components': './libs/fromnow/src/components',
'@screen': './libs/fromnow/src/screens',
'@styles': './libs/fromnow/src/styles',
'@hooks': './libs/fromnow/src/hooks',
'@utils': './libs/fromnow/src/utils',
'@store': './libs/fromnow/src/store',
'@clientTypes': './libs/fromnow/src/types',
'@api': './libs/fromnow/src/api',
},
extensions: ['.js', '.jsx', '.tsx', '.ios.js', '.android.js'],
},
],
[
'babel-plugin-react-native-web',
{
commonjs: true,
},
],
[
'module:react-native-dotenv',
{
envName: 'APP_ENV',
moduleName: '@env',
path: '.env',
blocklist: null,
allowlist: null,
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
verbose: false,
},
],
],
};