module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  // --- 新增下面这段 plugins 配置 ---
  plugins: [
    ['import', {
      libraryName: 'vant',
      libraryDirectory: 'es',
      style: true
    }, 'vant']
  ]
}