vue-cli 使用对象展开操作符报错

vue-cli 项目里 使用对象展开操作符报错

img

页面上给出这样的报错信息

img

you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed  from that module, such as 'addNamed' or 'addDefault'.

有哪位小伙伴知道怎么解决吗。是换语法还是babel配置的有问题

let renderDOM = h('render', {
    props: {
        conf: scheme
    },
    on: {
        ...listeners
    }
})

我把jsx语法换成了h函数解决了这个问题

需要将babel升级到7