overleaf/services/web/babel.config.json
Alf Eaton 3144aac53f Merge pull request #3575 from overleaf/ae-transpile-o-error
Add @overleaf/o-error to modules transpiled via babel-loader

GitOrigin-RevId: 9a04564ff0d3fea7cd13290aab4d7f0fa20cbc35
2021-01-19 03:04:51 +00:00

24 lines
534 B
JSON

{
"presets": [
"@babel/react",
["@babel/env", {
"useBuiltIns": "usage",
"corejs": { "version": 3 }
}]
],
"plugins": ["angularjs-annotate", "macros"],
// Target our current Node version in test environment, to transform and
// polyfill only what's necessary
"env": {
"test": {
"presets": [
"@babel/react",
["@babel/env", {
"targets": {"node": "10.21"},
"useBuiltIns": "usage",
"corejs": { "version": 3 }
}]
]
}
}
}