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.

.babelrc 1012B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "presets": [
  3. [
  4. "env",
  5. {
  6. "modules": false,
  7. "targets": {
  8. "browsers": [
  9. "last 3 Chrome versions",
  10. "last 3 Firefox versions",
  11. "last 3 Safari versions",
  12. "last 3 Edge versions",
  13. "IE 11"
  14. ]
  15. },
  16. "useBuiltIns": true
  17. }
  18. ],
  19. "react"
  20. ],
  21. "plugins": [
  22. "transform-class-properties",
  23. // use built-in `Object.assign`
  24. ["transform-object-rest-spread", { "useBuiltIns": true }],
  25. "lodash"
  26. ],
  27. "env": {
  28. "production": {
  29. "plugins": ["syntax-dynamic-import", "transform-react-constant-elements"]
  30. },
  31. "development": {
  32. "plugins": ["syntax-dynamic-import", "transform-react-jsx-source", "transform-react-jsx-self"]
  33. },
  34. "test": {
  35. "plugins": [
  36. "transform-es2015-modules-commonjs",
  37. "dynamic-import-node",
  38. "transform-react-jsx-source",
  39. "transform-react-jsx-self"
  40. ]
  41. }
  42. },
  43. "ignore": ["**/libs/**"]
  44. }