出现问题 使用vue+element-ui+webpack开发项目时,Jenkins构建出现报错error in static/js/xxx.js from UglifyJs Unpected token: punc() [static/js/xxx.js],本地打包出现报错SyntaxError: Unexpected token: name (xxxxxx) from Uglify plugin. 问题原因 打包时,部分代码没有从es6成功转化为es5,这部分代码经过查找,发现是由于elem…
What you did I have installed Swiper as normal dependency in my Project and import it to my scripts file like this import Swiper from 'swiper'; If I try to bundle it to a production ready version with webpack i get this error Unexpected token: name (…