.babelrc 423B

123456789101112131415161718192021222324
  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. ],
  14. "env": {
  15. "development":{
  16. "plugins": ["dynamic-import-node"],
  17. }
  18. },
  19. "plugins": [ ["import", { "libraryName": "vant", "libraryDirectory": "es", "style": true }] ]
  20. }