babel.config.js 544 B

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