.babelrc 928 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "presets": [
  3. ["env", {
  4. "targets": {
  5. "modules": false,
  6. "loose": true,
  7. "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
  8. }
  9. }],
  10. "stage-0",
  11. "es2015"
  12. ],
  13. "plugins": [
  14. ["import",[{
  15. "libraryName": "weex-ui",
  16. "libraryDirectory": "packages",
  17. "style": false
  18. }, {
  19. "libraryName": "bui-weex",
  20. "libraryDirectory": "src/components",
  21. "style": false
  22. },
  23. {
  24. "libraryName": "weex-amui",
  25. "libraryDirectory": "packages",
  26. "style": false
  27. },
  28. {
  29. "libraryName": "weex-flymeui",
  30. "libDir": "packages",
  31. "style": false
  32. }
  33. ]],
  34. ["transform-runtime", {
  35. "polyfill": false,
  36. "helpers": false
  37. }]
  38. ],
  39. "env": {
  40. "test": {
  41. "presets": ["env", "stage-0"],
  42. "plugins": ["istanbul"]
  43. }
  44. }
  45. }