mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
2c556366e2
Load modules in React using importOverleafModules Babel macro GitOrigin-RevId: 5553ede59d75306a7085424b5e0a20dabe0792f5
24 lines
534 B
Text
24 lines
534 B
Text
{
|
|
"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 }
|
|
}]
|
|
]
|
|
}
|
|
}
|
|
}
|