mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
82499334a1
GitOrigin-RevId: 65510e7d54c0f5165dce7605d67d352b8974eadf
24 lines
667 B
JSON
24 lines
667 B
JSON
{
|
|
"presets": [
|
|
[
|
|
"@babel/env",
|
|
{
|
|
"useBuiltIns": "usage",
|
|
// This version must be aligned with the `core-js` version in `package.json`
|
|
"corejs": { "version": "3.30" },
|
|
// Exclude Array.prototype.push polyfill, as it's not needed and affects performance in Chrome
|
|
"exclude": ["es.array.push"]
|
|
}
|
|
],
|
|
["@babel/react", { "runtime": "automatic" }],
|
|
"@babel/typescript"
|
|
],
|
|
"plugins": ["angularjs-annotate", "macros"],
|
|
"overrides": [
|
|
// treat .cjs files (e.g. libraries symlinked into node_modules) as commonjs
|
|
{
|
|
"test": "../../**/*.cjs",
|
|
"sourceType": "script"
|
|
}
|
|
]
|
|
}
|