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

uglify-js 3.19.0 causes lost code #5908

Closed
yisibl opened this issue Aug 6, 2024 · 2 comments · Fixed by #5909
Closed

uglify-js 3.19.0 causes lost code #5908

yisibl opened this issue Aug 6, 2024 · 2 comments · Fixed by #5909
Labels

Comments

@yisibl
Copy link

yisibl commented Aug 6, 2024

Uglify version (uglifyjs -V)

v3.19.0

JavaScript input

day.js v1.10.7 (The code that has been compressed)

What's the problem?

See: Example repository https://github.com/yisibl/uglify-js-issue

uglify-js 3.19.0 causes an issue with compression losing code, the .init=function() function is missing from build_3_19/day.js.

This does not happen in version 3.18.0, compare the difference between the files in build_3_18/day.js and build_3_19/day.js.

@alexlamsl alexlamsl added the bug label Aug 6, 2024
@alexlamsl
Copy link
Collaborator

Thank you for the report − investigating.

alexlamsl added a commit to alexlamsl/UglifyJS that referenced this issue Aug 6, 2024
@alexlamsl
Copy link
Collaborator

Patch released in uglify-js@3.19.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants