babel.config.json 534 B

123456789101112131415161718192021222324
  1. {
  2. "presets": [
  3. "@babel/react",
  4. ["@babel/env", {
  5. "useBuiltIns": "usage",
  6. "corejs": { "version": 3 }
  7. }]
  8. ],
  9. "plugins": ["angularjs-annotate", "macros"],
  10. // Target our current Node version in test environment, to transform and
  11. // polyfill only what's necessary
  12. "env": {
  13. "test": {
  14. "presets": [
  15. "@babel/react",
  16. ["@babel/env", {
  17. "targets": {"node": "10.21"},
  18. "useBuiltIns": "usage",
  19. "corejs": { "version": 3 }
  20. }]
  21. ]
  22. }
  23. }
  24. }