.babelrc 788 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "presets": [
  3. [
  4. "@babel/preset-react",
  5. {
  6. "runtime": "automatic"
  7. }
  8. ],
  9. "@babel/preset-typescript",
  10. [
  11. "@babel/preset-env",
  12. {
  13. "targets": {
  14. "browsers": ["last 2 Chrome versions"],
  15. "node": "current"
  16. }
  17. }
  18. ]
  19. ],
  20. "plugins": [
  21. [
  22. "babel-plugin-import",
  23. {
  24. "libraryName": "antd",
  25. "style": false
  26. }
  27. ],
  28. "@babel/plugin-proposal-class-properties",
  29. "@babel/plugin-proposal-private-methods",
  30. "@babel/plugin-proposal-optional-chaining",
  31. "@babel/plugin-proposal-nullish-coalescing-operator"
  32. ],
  33. "env": {
  34. "development": {
  35. "plugins": ["babel-plugin-istanbul"]
  36. },
  37. "test": {
  38. "plugins": ["babel-plugin-istanbul"]
  39. }
  40. }
  41. }