1
0

.babelrc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "presets": [
  3. "react",
  4. [
  5. "env",
  6. {
  7. "loose": true,
  8. "modules": false,
  9. "targets": {
  10. "browsers": ["last 2 versions", "IE >= 11", "iOS >= 9"]
  11. }
  12. }
  13. ]
  14. ],
  15. "plugins": [
  16. "syntax-dynamic-import",
  17. "transform-object-rest-spread",
  18. "transform-class-properties",
  19. [
  20. "react-intl",
  21. {
  22. "messagesDir": "./build/messages"
  23. }
  24. ]
  25. ],
  26. "env": {
  27. "development": {
  28. "plugins": [
  29. "transform-react-jsx-source",
  30. "transform-react-jsx-self"
  31. ]
  32. },
  33. "production": {
  34. "plugins": [
  35. "lodash",
  36. [
  37. "transform-react-remove-prop-types",
  38. {
  39. "mode": "remove",
  40. "removeImport": true,
  41. "additionalLibraries": [
  42. "react-immutable-proptypes"
  43. ]
  44. }
  45. ],
  46. [
  47. "transform-runtime",
  48. {
  49. "helpers": true,
  50. "polyfill": false,
  51. "regenerator": false
  52. }
  53. ]
  54. ]
  55. },
  56. "test": {
  57. "plugins": [
  58. "transform-es2015-modules-commonjs"
  59. ]
  60. }
  61. }
  62. }