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

Removed uncommon syntax for post-processors #2

Merged
merged 1 commit into from
Dec 29, 2017

Conversation

jeffturcotte
Copy link
Contributor

@jeffturcotte jeffturcotte commented Dec 29, 2017

Re: #1, while this is technically an uglify issue (and apparently fixed in some newer versions?), the issue is with the use of an object property as the index variable in a for-in loop. Maybe there was a programmatic reason for this in an earlier version of this lib? I saw no reason to keep it as is. Altering the syntax to something more common fixed the uglify processing issue for me.

In my case, I'm dependent on a 3rd party build tool that is itself dependent on a certain version of uglify. Upgrading uglify would not be convenient, so I hope you accept this change.

Thanks for the great lib!

@jeanlescure
Copy link
Collaborator

Hi @jeffturcotte, your PR looks promising!

Could you please provide me with the version of uglify that's causing all this fuzz?

I'll more than gladly merge your work after testing against said version 👍

Cheers!

@jeffturcotte
Copy link
Contributor Author

Upon further review, the problem is technically with any pre-1.0.0 version of uglifyjs-webpack-plugin and not uglify itself.

IMO, the fix is stylistically better than what is in there now from the older forked lib. So it's an improvement either way. Thanks.

@jeanlescure
Copy link
Collaborator

@jeffturcotte, I agree the fix is stylistically better. I was just really curious to have a test case; do excuse my OCD.

I'll be merging soon and publishing v1.1.1 👍

@jeanlescure
Copy link
Collaborator

Tested against uglifyjs-webpack-plugin v0.4.6, both bug and fix confirmed. Moving forward with merge.

@jeanlescure jeanlescure merged commit 7ba9559 into simplyhexagonal:master Dec 29, 2017
@jeanlescure jeanlescure mentioned this pull request Dec 29, 2017
jeanlescure added a commit that referenced this pull request May 4, 2021
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.

2 participants