mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 04:05:25 -05:00
3144aac53f
Add @overleaf/o-error to modules transpiled via babel-loader GitOrigin-RevId: 9a04564ff0d3fea7cd13290aab4d7f0fa20cbc35
24 lines
534 B
JSON
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 }
|
|
}]
|
|
]
|
|
}
|
|
}
|
|
}
|