forked from Aircoookie/ghubber
/
.babelrc
39 lines (39 loc) · 1.14 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
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
[
"module-resolver",
{
"root": ["./"]
}
]
],
"env": {
"development": {
"plugins": [
[
"transform-define",
{
// Please disable it, if you dont need Sentry for local development or it brokens backtrace for you
// It's enabled because We needed to test Sentry compatiblity for local development
// to protect bugs in release build
"SENTRY_ENABLED": true,
"GHUBBER_OAUTH": "https://ghub.lowl.io/v1/oauth/github"
}
]
]
},
"production": {
"plugins": [
[
"transform-define",
{
"SENTRY_ENABLED": true,
"GHUBBER_OAUTH": "https://ghub.lowl.io/v1/oauth/github"
}
],
"transform-remove-console"
]
}
}
}