Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #26 (ES6): 当调用UglifyJS.minify时,只把uglify-js需要的参数传进去,避免传入无用参数引起uglify-js报错。 #28

Merged
merged 2 commits into from
Feb 28, 2022

Conversation

Starrah
Copy link
Contributor

@Starrah Starrah commented Feb 27, 2022

您好,这一版本是使用ES6语法的fix版本,同时也移除了无用依赖、升级了需要的依赖到最新。

#27 提供了使用ES5语法的fix,您可以根据情况选择Merge哪一个。

非常感谢!

Fix #26 .

…y-js报错。

这一fix版本使用了ES6语法,因而可能无法支持老版本Node。
@Starrah Starrah changed the title fix #26: 当调用UglifyJS.minify时,只把uglify-js需要的参数传进去,避免传入无用参数引起uglify-js报错。 fix #26 (ES6): 当调用UglifyJS.minify时,只把uglify-js需要的参数传进去,避免传入无用参数引起uglify-js报错。 Feb 27, 2022
…赖升级到最新版本。

此版本将不再支持一些老版本的、不支持ES6语法的Node。
已经过测试,在Node v14.17.3下可用。
@ohroy ohroy merged commit 75cb9db into ohroy:master Feb 28, 2022
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.

Bug: 由于uglify-js v3.10.x 的minify函数对传入的参数对象进行强校验,neat_js无法工作。
2 participants