babel.config.json 734 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "presets": [
  3. [
  4. "@babel/react",
  5. {
  6. "runtime": "automatic"
  7. }
  8. ],
  9. [
  10. "@babel/env",
  11. {
  12. "useBuiltIns": "usage",
  13. "corejs": { "version": 3 }
  14. }
  15. ]
  16. ],
  17. "plugins": ["angularjs-annotate", "macros"],
  18. // Target our current Node version in test environment, to transform and
  19. // polyfill only what's necessary
  20. "env": {
  21. "test": {
  22. "presets": [
  23. [
  24. "@babel/react",
  25. {
  26. "runtime": "automatic"
  27. }
  28. ],
  29. [
  30. "@babel/env",
  31. {
  32. "targets": { "node": "12.21" },
  33. "useBuiltIns": "usage",
  34. "corejs": { "version": 3 }
  35. }
  36. ]
  37. ]
  38. }
  39. }
  40. }