Devil May Code...

Vergil's Blog

今天在写Laravel+Vue项目时,发现Laravel-mix发现对ES6的object spread操作符「...」不支持。升级Laravel-mix后未果。

后来搜索发现通过添加插件解决:

// package.json
"dependencies": {
  "babel-plugin-transform-object-rest-spread": "^6.23.0"
},
"babel": {
  "plugins": ["transform-object-rest-spread"]
}

仅有一条评论 »

  1. It looks like you've misspelled the word "conection" on your website. I thought you would like to know :). Silly mistakes can ruin your site's credibility. I've used a tool called SpellScan.com in the past to keep mistakes off of my website.

    -Kerri

添加新评论 »

在这里输入你的评论...

Powered by Typecho.