You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.2 KiB

  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", { "useBuiltIns": true }],
  18. "transform-decorators-legacy",
  19. "transform-class-properties",
  20. [
  21. "react-intl",
  22. {
  23. "messagesDir": "./build/messages"
  24. }
  25. ]
  26. ],
  27. "env": {
  28. "development": {
  29. "plugins": [
  30. "transform-react-jsx-source",
  31. "transform-react-jsx-self"
  32. ]
  33. },
  34. "production": {
  35. "plugins": [
  36. "lodash",
  37. [
  38. "transform-react-remove-prop-types",
  39. {
  40. "mode": "remove",
  41. "removeImport": true,
  42. "additionalLibraries": [
  43. "react-immutable-proptypes"
  44. ]
  45. }
  46. ],
  47. [
  48. "transform-runtime",
  49. {
  50. "helpers": true,
  51. "polyfill": false,
  52. "regenerator": false
  53. }
  54. ]
  55. ]
  56. },
  57. "test": {
  58. "plugins": [
  59. "transform-es2015-modules-commonjs"
  60. ]
  61. }
  62. }
  63. }