mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #8004 from overleaf/ae-babel-preset-order
Fix the order of Babel presets GitOrigin-RevId: a4d94a2f1a567b9073bf945c90fc8bf01b2058ec
This commit is contained in:
parent
db1198597d
commit
d0d78b7c48
1 changed files with 7 additions and 17 deletions
|
@ -1,12 +1,5 @@
|
|||
{
|
||||
"presets": [
|
||||
"@babel/typescript",
|
||||
[
|
||||
"@babel/react",
|
||||
{
|
||||
"runtime": "automatic"
|
||||
}
|
||||
],
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
|
@ -14,7 +7,9 @@
|
|||
// This version must be aligned with the `core-js` version in `package.json`
|
||||
"corejs": { "version": 3.6 }
|
||||
}
|
||||
]
|
||||
],
|
||||
["@babel/react", { "runtime": "automatic" }],
|
||||
"@babel/typescript"
|
||||
],
|
||||
"plugins": ["angularjs-annotate", "macros"],
|
||||
// Target our current Node version in test environment, to transform and
|
||||
|
@ -22,22 +17,17 @@
|
|||
"env": {
|
||||
"test": {
|
||||
"presets": [
|
||||
"@babel/typescript",
|
||||
[
|
||||
"@babel/react",
|
||||
{
|
||||
"runtime": "automatic"
|
||||
}
|
||||
],
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
"targets": { "node": "14.18" },
|
||||
"targets": { "node": "current" },
|
||||
"useBuiltIns": "usage",
|
||||
// This version must be aligned with the `core-js` version in `package.json`
|
||||
"corejs": { "version": 3.6 }
|
||||
}
|
||||
]
|
||||
],
|
||||
["@babel/react", { "runtime": "automatic" }],
|
||||
"@babel/typescript"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue