зеркало из https://github.com/mozilla/hubs.git
43 строки
1.2 KiB
Plaintext
43 строки
1.2 KiB
Plaintext
{
|
|
"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"
|
|
]
|
|
}
|