闭社主体 forked from https://github.com/tootsuite/mastodon
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.

62 lines
1.1 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",
  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. }