forked from Hubs-Foundation/hubs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.babelrc
More file actions
39 lines (39 loc) · 1.02 KB
/
.babelrc
File metadata and controls
39 lines (39 loc) · 1.02 KB
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": [
"@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",
"@babel/plugin-proposal-optional-chaining"
]
}