-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
29 lines (29 loc) · 952 Bytes
/
Copy pathbabel.config.js
File metadata and controls
29 lines (29 loc) · 952 Bytes
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
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-transform-class-static-block',
[
'module-resolver',
{
root: ['./src'],
extensions: ['.ios.ts', '.android.ts', '.ts', '.ios.tsx', '.android.tsx', '.tsx', '.jsx', '.js', '.json'],
alias: {
'@components': './src/components',
'@screens': './src/screens',
'@services': './src/services',
'@contexts': './src/contexts',
'@models': './src/models',
'@hooks': './src/hooks',
'@utils': './src/utils',
'@shared-types': './src/shared-types',
'@native-modules': './src/native-modules',
'@specs': './src/specs',
'@theme': './src/theme',
'@navigation': './src/navigation',
},
},
],
'react-native-reanimated/plugin',
],
};