babel.config.json 523 B

12345678910111213141516171819202122
  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.6 }
  9. }
  10. ],
  11. ["@babel/react", { "runtime": "automatic" }],
  12. "@babel/typescript"
  13. ],
  14. "plugins": ["angularjs-annotate", "macros"],
  15. "overrides": [
  16. // treat .cjs files (e.g. libraries symlinked into node_modules) as commonjs
  17. {
  18. "test": "../../**/*.cjs",
  19. "sourceType": "script"
  20. }
  21. ]
  22. }