babel.config.js 223B

123456789101112131415
  1. module.exports = {
  2. presets: ["@vue/cli-plugin-babel/preset"],
  3. plugins: [
  4. [
  5. "import",
  6. {
  7. libraryName: "vant",
  8. libraryDirectory: "es",
  9. style: true
  10. },
  11. "vant"
  12. ]
  13. ]
  14. };