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.

67 lines
1.3 KiB

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