babel.config.js 522 B

123456789101112131415161718192021222324
  1. // [["@vue/app",
  2. // { useBuiltIns: "entry",
  3. // polyfills: [
  4. // 'es6.promise',
  5. // 'es6.symbol'
  6. // ]},
  7. // ]],
  8. // ["@vue/app"]
  9. module.exports = {
  10. presets: [["@vue/app",
  11. { useBuiltIns: "entry",
  12. polyfills: [
  13. 'es6.promise',
  14. 'es6.symbol'
  15. ]},
  16. ]],
  17. plugins: [
  18. ['import', {
  19. libraryName: 'vant',
  20. libraryDirectory: 'es',
  21. style: name => `${name}/style/less`
  22. }]
  23. ]
  24. }