EasyScroll icon indicating copy to clipboard operation
EasyScroll copied to clipboard

npm run build 打包时报错了

Open crossui opened this issue 8 years ago • 1 comments

已经安装jsx插件, 在run 运行时是正常的,可一旦打包就报错了,错误信息:

ERROR in static/js/vendor.01d86568a7d326df7567.js from UglifyJs Unexpected token: name (scrollBarWidth) [./node_modules/easyscroll/src/utils/scrollbar-width.js:6,0][static/js/vendor.01d86568a7d326df7567.js:46573,5]

Build failed with errors.

crossui avatar Oct 17 '17 07:10 crossui

image

这里配置一下就可以了,没有转es5直接压缩代码会有错,话说作者不经常上来看issues?

ruiyong-lee avatar Feb 08 '18 10:02 ruiyong-lee