forked from Hubs-Foundation/hubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
37 lines (35 loc) · 1.06 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
{
"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": [
[ "react-intl", { "messagesDir": "./public/messages", "enforceDescriptions": false } ],
"transform-react-jsx-img-import",
"@babel/proposal-class-properties",
"@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"
]
}