Minification not working with es6

Do you want to request a feature or report a bug?

What is the current behavior?
i get error :
ERROR in 0.js from UglifyJs
Unexpected token: name (that) [0.js:581,16]

If the current behavior is a bug, please provide the steps to reproduce.

I run the production build for vue.js app, and get the problem in 0.js
this file is cut of require.ensure and contain in itself vue component (es6 syntax).

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

If i don’t use minification, then everything is built without errors

If i don’t use es6 syntax , then everything is built without errors

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
windows 10,
node v8.1.4,
npm v5.3.0,
webpack v3.3.0


babel-core ^6.25.0
babel-loader ^7.1.1
babel-preset-env ^1.6.0

vue-html-loader ^1.2.4
vue-loader ^12.2.2″,
vue-style-loader ^3.0.1
vue-template-compiler ^2.4.1

Author: Fantashit

1 thought on “Minification not working with es6

Comments are closed.