jslib-base icon indicating copy to clipboard operation
jslib-base copied to clipboard

代码压缩问题

Open BUPTlhuanyu opened this issue 4 years ago • 1 comments

问题是什么

npm run build:aio的时候报错

环境

  • 系统:win 10
  • node版本:10.13.0
  • npm版本:6.4.1

在线例子

其他

由于uglify-js is able to transpile only es5 syntax. If you want to transpile es6+ syntax use terser instead,所以会报错,是否考虑将脚手架的uglify-js换成 terser ,换成terser之后可以解决

BUPTlhuanyu avatar Apr 17 '20 04:04 BUPTlhuanyu

同时还需要将rollup升级到最新版本,terser才能生效

BUPTlhuanyu avatar Apr 17 '20 07:04 BUPTlhuanyu

2.0发布了,已经替换为terser了

yanhaijing avatar Sep 23 '23 08:09 yanhaijing