关于vue.js:vue项目使用可选链报错

目前我的项目vue的template模版外面用可选链的时候会报错,相干配置和插件增加后就能够应用了

// vue template模版中反对可选链应用
    config.module
      .rule('vue')
      .use('vue-loader')
      .tap(options => {
        options.compiler = require('vue-template-babel-compiler');
        return options;
      })

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理