Skip to content

Conversation

@LOG1997
Copy link

@LOG1997 LOG1997 commented Jan 15, 2026

uglify不支持将es6语法转为es5语法,产出物里会存在es6语法的代码,在ie中加载会出错。使用terser来压缩代码,会保证代码的兼容性。

rollup-plugin-uglify插件官方说明
https://github.com/TrySound/rollup-plugin-uglify
image

uglify不支持将es6语法转为es5语法,产出物里会存在es6语法的代码,在ie中加载会出错。使用terser来压缩代码,会保证代码的兼容性。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant