闭社主体 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.

64 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. "transform-react-inline-elements",
  48. [
  49. "transform-runtime",
  50. {
  51. "helpers": true,
  52. "polyfill": false,
  53. "regenerator": false
  54. }
  55. ]
  56. ]
  57. },
  58. "test": {
  59. "plugins": [
  60. "transform-es2015-modules-commonjs"
  61. ]
  62. }
  63. }
  64. }