2018-11-05 10:06:39 +00:00
|
|
|
{
|
|
|
|
"presets": [
|
2021-06-23 09:37:08 +00:00
|
|
|
[
|
|
|
|
"@babel/env",
|
|
|
|
{
|
|
|
|
"useBuiltIns": "usage",
|
2021-12-14 13:25:25 +00:00
|
|
|
// This version must be aligned with the `core-js` version in `package.json`
|
2023-12-08 09:36:41 +00:00
|
|
|
"corejs": { "version": "3.30" },
|
2024-01-12 10:08:33 +00:00
|
|
|
"exclude": [
|
|
|
|
// Exclude Array.prototype.push polyfill, as it's not needed and affects performance in Chrome
|
|
|
|
"es.array.push",
|
|
|
|
// Exclude objectSpread polyfill, as it's not needed and affects performance
|
|
|
|
"@babel/plugin-transform-object-rest-spread",
|
|
|
|
// Exclude _defineProperty polyfill, as it causes a bug without the objectSpread polyfill
|
2024-02-09 09:18:00 +00:00
|
|
|
"@babel/plugin-transform-computed-properties",
|
|
|
|
// Use native async functions, for performance
|
|
|
|
"@babel/plugin-transform-async-to-generator",
|
|
|
|
// Use native generators, for performance
|
|
|
|
"@babel/plugin-transform-regenerator",
|
|
|
|
// Use native async generators, for performance
|
|
|
|
"@babel/plugin-transform-async-generator-functions",
|
|
|
|
// Use native for-of loops, for performance
|
|
|
|
"@babel/plugin-transform-for-of"
|
2024-01-12 10:08:33 +00:00
|
|
|
]
|
2021-06-23 09:37:08 +00:00
|
|
|
}
|
2022-05-19 12:41:50 +00:00
|
|
|
],
|
|
|
|
["@babel/react", { "runtime": "automatic" }],
|
|
|
|
"@babel/typescript"
|
2019-07-16 09:13:18 +00:00
|
|
|
],
|
2023-01-09 12:52:55 +00:00
|
|
|
"plugins": ["angularjs-annotate", "macros"],
|
|
|
|
"overrides": [
|
|
|
|
// treat .cjs files (e.g. libraries symlinked into node_modules) as commonjs
|
|
|
|
{
|
|
|
|
"test": "../../**/*.cjs",
|
|
|
|
"sourceType": "script"
|
|
|
|
}
|
|
|
|
]
|
2020-09-15 12:48:08 +00:00
|
|
|
}
|