在使用webpack 和vue2開(kāi)發(fā)項(xiàng)目的時(shí)候,使用了...延展操作符,但是編譯的時(shí)候報(bào)錯(cuò)。使用如下:const app = new Vue({
router,
...App}).$mount('#app');報(bào)錯(cuò)如下:涉及到的es6的插件如下:"babel-core": "^6.0.0", "babel-loader": "^6.0.0", "babel-plugin-transform-runtime": "^6.15.0", "babel-preset-es2015": "^6.18.0", "babel-preset-stage-2": "^6.18.0", "babel-register": "^6.18.0",請(qǐng)問(wèn)還缺少什么插件呢?搞不懂為什么
webpack中使用...延展操作符報(bào)錯(cuò) 是為什么
慕桂英3389331
2018-10-13 13:12:17