.babelrc 345 B

1234567891011121314151617181920
  1. {
  2. "presets": [
  3. ["env", {
  4. "modules": false,
  5. "targets": {
  6. "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
  7. }
  8. }],
  9. "stage-2"
  10. ],
  11. "plugins": [
  12. "transform-vue-jsx", "transform-runtime",
  13. ["import", {
  14. "libraryName": "vant",
  15. "libraryDirectory": "es",
  16. "style": true
  17. }]
  18. ]
  19. }