読者です 読者をやめる 読者になる 読者になる

LaravelMixのVueJSにES6 syntax spread operator

npm install --save-dev babel-plugin-transform-object-rest-spread

 

add .babelrc in your project directory

{

    "plugins": ["transform-object-rest-spread"]

}

 

参考:

can't compile object spread operator unexpected token error · Issue #76 · JeffreyWay/laravel-mix · GitHub