overleaf/services/web/.babelrc
Alasdair Smith 2c556366e2 Merge pull request #3464 from overleaf/as-import-from-settings-macro
Load modules in React using importOverleafModules Babel macro

GitOrigin-RevId: 5553ede59d75306a7085424b5e0a20dabe0792f5
2020-12-17 03:07:42 +00:00

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