forked from Hubs-Foundation/hubs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.babelrc
42 lines (42 loc) · 1.23 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
{
"presets": [
"@babel/react",
[
"@babel/env",
{
"exclude": [
"transform-regenerator"
],
"targets": {
"browsers": [
"last 2 major versions",
"not <= 0.5%",
"not dead",
// No WebRTC support (including datachannels)
"not ios_saf < 11",
"not safari < 11",
"not ie >= 0",
"not edge >= 0",
"not ie_mob >= 0",
"not and_uc >= 0",
// No WebGL or WebRTC support
"not op_mini all"
]
},
// false = do not polyfill stuff unneccessarily
"useBuiltIns": false
}
]
],
"plugins": [
// TODO: When i18n build pipeline is finished move to: [ "react-intl", { "removeDefaultMessage": true } ]
"react-intl",
"transform-react-jsx-img-import",
["@babel/proposal-class-properties", { "loose": true }],
"@babel/proposal-object-rest-spread",
// Samsung Internet on the Oculus Go version is stuck at version 5.2, which is a
// Chromium 51, as of this writing. It needs babel to transpile async/await.
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-proposal-optional-chaining"
]
}