overleaf/services/web/babel.config.json
Timothée Alby 655c65f873 Merge pull request #6126 from overleaf/msm-update-corejs
Updated corejs version in @babel/env

GitOrigin-RevId: 2b5958e052622a4621e4312c3dbdd845cb53875a
2021-12-15 09:05:06 +00:00

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 }
}
]
]
}
}
}