-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
45 lines (45 loc) · 1.19 KB
/
babel.config.js
File metadata and controls
45 lines (45 loc) · 1.19 KB
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
module.exports = function (api) {
api.cache(true);
return {
presets: [
['babel-preset-expo', { jsxImportSource: 'nativewind', unstable_transformImportMeta: true }],
'nativewind/babel',
],
plugins: [
[
'module:react-native-dotenv',
{
moduleName: '@env',
path: '.env',
blacklist: null,
whitelist: null,
safe: false,
allowUndefined: true,
},
],
[
'module-resolver',
{
root: ['./src'],
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
alias: {
'@': './src',
'@components': './src/components',
'@screens': './src/screens',
'@navigation': './src/navigation',
'@hooks': './src/hooks',
'@api': './src/api',
'@utils': './src/utils',
'@assets': './assets',
'@styles': './src/styles',
'@types': './src/types',
'@services': './src/services',
'@i18n': './src/i18n',
'@store': './src/store',
},
},
],
'react-native-reanimated/plugin',
],
};
};