mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 07:13:06 +00:00
655c65f873
Updated corejs version in @babel/env GitOrigin-RevId: 2b5958e052622a4621e4312c3dbdd845cb53875a
41 lines
821 B
JSON
41 lines
821 B
JSON
{
|
|
"presets": [
|
|
[
|
|
"@babel/react",
|
|
{
|
|
"runtime": "automatic"
|
|
}
|
|
],
|
|
[
|
|
"@babel/env",
|
|
{
|
|
"useBuiltIns": "usage",
|
|
// This version must be aligned with the `core-js` version in `package.json`
|
|
"corejs": { "version": 3.6 }
|
|
}
|
|
]
|
|
],
|
|
"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",
|
|
{
|
|
"runtime": "automatic"
|
|
}
|
|
],
|
|
[
|
|
"@babel/env",
|
|
{
|
|
"targets": { "node": "12.21" },
|
|
"useBuiltIns": "usage",
|
|
"corejs": { "version": 3 }
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|