-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
55 lines (55 loc) · 2.26 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
47
48
49
50
51
52
53
54
55
// NOTE: "babel-preset-react-native has been replaced by metro-react-native-babel-preset"
// NOTE: Aliases are implemented for the following purposes:
// - Only paths in .babelrc & tsconfig.json need changing to move a Feature Folders
// - Quick access to commonly referenced components, selectors, etc.
// Redux files should be referenced from their feature, even if root__ requires more paths
{
"presets": ["module:metro-react-native-babel-preset", "@babel/preset-typescript"],
"env": {
"production": {
"plugins": ["react-native-paper/babel"]
}
},
"plugins": [
["babel-plugin-styled-components"],
[
"module-resolver",
{
"root": ["./src"],
"extensions": [".ios.js", ".android.js", ".js", ".ts", ".tsx", ".json"],
"alias": {
"@assets": "./src/assets/index",
"@common": "./src/components/common",
"@env": "@env",
"@hooks": "./src/hooks/index",
"@navigators": "./src/components/navigators/index",
"@noke-constants": "./src/noke/noke-constants",
"@noke-slices": "./src/noke/noke-slices/index",
"@noke-api": "./src/noke/noke-api/index",
"@noke-sagas": "./src/noke/noke-sagas/index",
"@noke": "./src/noke/index",
"@root-reducer": "./src/redux/root-reducer",
"@screens": "./src/components/screens/index",
"@selectors": "./src/redux/selectors",
"@settings": "./src/components/settings/index",
"@store": "./src/redux/store",
"@theme": "./src/theme/index",
"@system": "./src/system/index",
"@types": "./src/types/index",
"@utilities": "./src/util/index"
}
}
],
[
"module:react-native-dotenv",
{
"moduleName": "@env",
"path": ".env",
"blacklist": null,
"whitelist": null,
"safe": false,
"allowUndefined": true
}
]
]
}