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

Work around terser bug. #11758

Merged
merged 1 commit into from
Nov 12, 2021
Merged

Work around terser bug. #11758

merged 1 commit into from
Nov 12, 2021

Conversation

brianlukoff
Copy link
Contributor

This is intended to fix #11756, by disabling the evaluation option in terser's compressor.

@filipenevola
Copy link
Collaborator

Hi @brianlukoff thank you for this investigation.

The upgrade in the version is required to use this option or what was the reason for this bump?

@brianlukoff
Copy link
Contributor Author

Just figured it was worthwhile upgrading while we were at it, but I don't think it is strictly necessary as evaluate is available in 5.8.0 as well.

Copy link
Collaborator

@filipenevola filipenevola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've read the 5.9.0 change log and it seems it only contains bug fixes.

@filipenevola
Copy link
Collaborator

I'm waiting all the tests to complete.

Also, I reinstalled AppVeyor integration as it is not communicating properly with GitHub but the tests are running here.

@filipenevola
Copy link
Collaborator

AppVeyor integration is back 🎉

@filipenevola filipenevola merged commit a185aab into meteor:devel Nov 12, 2021
@filipenevola
Copy link
Collaborator

Thank you @brianlukoff. This fix is published in minifier-js@2.7.2.

@brianlukoff
Copy link
Contributor Author

Thanks @filipenevola!

@@ -22,6 +22,7 @@ export const meteorJsMinify = function (source) {
drop_debugger: false, // remove debugger; statements
unused: false, // drop unreferenced functions and variables
dead_code: true, // remove unreachable code
evaluate: false, // work around issue in terser (possibly https://github.com/terser/terser/issues/837)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has caused #11775

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

Successfully merging this pull request may close these issues.

Minification issue with flow-router
3 participants