.babelrc 738 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "presets": [
  3. [
  4. "@babel/preset-env",
  5. {
  6. "modules": "commonjs"
  7. }
  8. ],
  9. "@babel/preset-react"
  10. ],
  11. "plugins": [
  12. [
  13. "@babel/plugin-proposal-object-rest-spread",
  14. {
  15. "useBuiltIns": true
  16. }
  17. ],
  18. "@babel/plugin-proposal-class-properties",
  19. "lodash",
  20. ],
  21. "env": {
  22. "test": {
  23. "presets": [
  24. [
  25. "@babel/preset-env",
  26. {
  27. "modules": "commonjs"
  28. }
  29. ],
  30. "@babel/preset-react"
  31. ],
  32. "plugins": [
  33. [
  34. "@babel/plugin-proposal-object-rest-spread",
  35. {
  36. "useBuiltIns": true
  37. }
  38. ],
  39. "@babel/plugin-proposal-class-properties",
  40. ]
  41. }
  42. }
  43. }