-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc
46 lines (45 loc) · 1.43 KB
/
.babelrc
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
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
[
"module-resolver",
{
"root": ["./src"], // This says the root of your project folder
// To make your imports look better
// Insert your whatever name to make alias for the imports
// In this example I'm using @components to referring the components folder
// That located inside src folder.
// Note: You can make a lot of aliases in here
"extensions": [
".ios.ts",
".android.ts",
".ts",
".ios.tsx",
".android.tsx",
".tsx",
".jsx",
".js",
".json"
],
"alias": {
"@components": "./src/components",
"@assets": "./src/assets",
"@constants": "./src/constants",
"@api": "./src/api",
"@store": "./src/store",
"@styles": "./src/styles",
"@util": "./src/util",
"@type": "./src/type",
"@navigation": "./src/navigation",
"@animation": "./src/assets/animation",
"@image": "./src/assets/image",
"@svg": "./src/assets/svg",
"@home": "./src/module/home",
"@auth": "./src/module/auth",
"@translation": "./src/translation"
}
}
],
["module:react-native-dotenv"]
]
}