forked from Yashnandha/NewStructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
41 lines (40 loc) · 1.09 KB
/
babel.config.js
File metadata and controls
41 lines (40 loc) · 1.09 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
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
// ... other configs, if an
[
'module-resolver',
{
extensions: [
'.ios.js',
'.android.js',
'.ios.jsx',
'.android.jsx',
'.js',
'.jsx',
'.json',
'.ts',
'.tsx',
'.style.ts',
],
alias: {
'@imageIndex': './src/assets/imageIndex.ts',
'@svgIndex': './src/assets/svgIndex.ts',
'@components': './src/components/componentsIndex.ts',
'@card': './src/components/cardIndex.ts',
'@hooks': './src/hooks',
'@i18n': './src/i18n',
'@navigation': './src/navigation',
'@screenName': './src/navigation/screenName.ts',
'@screens': './src/screens',
'@redux': './src/services/redux',
'@api': './src/services/api',
'@config': './src/services/config',
'@theme': './src/theme',
'@utility': './src/utility',
},
},
],
// ... other configs, if any
],
};