-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
executable file
·43 lines (43 loc) · 1.02 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
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
env: {
production: {
plugins: ['react-native-paper/babel'],
},
},
plugins: [
[
'module-resolver',
{
extensions: [
'.js',
'.jsx',
'.ts',
'.tsx',
'.android.js',
'.android.tsx',
'.ios.js',
'.ios.tsx',
],
root: ['.'],
alias: {
assets: './src/assets',
components: './src/components',
screens: './src/screens',
utils: './src/utils',
routes: './src/routes',
configs: './src/configs',
features: './src/features',
services: './src/services',
helpers: './src/helpers',
middleware: './src/middleware',
},
},
],
'@babel/plugin-proposal-unicode-property-regex',
'react-native-reanimated/plugin',
],
};
};