babel.config.json 667 B

123456789101112131415161718192021222324
  1. {
  2. "presets": [
  3. [
  4. "@babel/env",
  5. {
  6. "useBuiltIns": "usage",
  7. // This version must be aligned with the `core-js` version in `package.json`
  8. "corejs": { "version": "3.30" },
  9. // Exclude Array.prototype.push polyfill, as it's not needed and affects performance in Chrome
  10. "exclude": ["es.array.push"]
  11. }
  12. ],
  13. ["@babel/react", { "runtime": "automatic" }],
  14. "@babel/typescript"
  15. ],
  16. "plugins": ["angularjs-annotate", "macros"],
  17. "overrides": [
  18. // treat .cjs files (e.g. libraries symlinked into node_modules) as commonjs
  19. {
  20. "test": "../../**/*.cjs",
  21. "sourceType": "script"
  22. }
  23. ]
  24. }