-
Notifications
You must be signed in to change notification settings - Fork 349
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-es support on npm? #499
Comments
or a version for example:
|
for now I'm using it like this:
but it would be cool as the @gkatsev said:
or
Thank you. |
I've used |
My concern is exactly that, make sure I use a stable version. Great tip @gkatsev , I will do it.
Thank you. |
Hi @alexlamsl and @XhmikosR Release the grunt-contrib-uglify with version: harmony-v3.3.2? Please. |
Hi @XhmikosR @alexlamsl |
I need this as well. I was using the "#harmony" branch in my npm, but due to some recent bug, 2 separate functions are getting uglified with the same signature, and thus breaking my release. I cannot use a hastag for some reason in my environment. I am running in Docker (Ubuntu) with npm 5.5.1 and git 2.7.4, and my "npm install" fails with: npm sill fetchPackageMetaData error for grunt-contrib-uglify@github:gruntjs/grunt-contrib-uglify#9315efca3bf977a35ce2f29ee34b00b14dafa171 Command failed: /usr/bin/git checkout 9315efc |
I also recently began experiencing uglification issues, and unable to build newer versions. Please publish a stable trackable version. |
Just change the hash. This happens due to the rebase. We'll need to do this differently since people are using the branch; when I made it, was just as an experiment. |
@XhmikosR I tried |
Not sure how that can be related to grunt. |
@nyurik that's an issue with |
@alexlamsl: I think the best at this point would be if we made the harmony branch a separate package here too. We'll need @vladikoff's help in order to publish it on npm though. |
@XhmikosR no objection to a separate package - and we can keep the current rebase approach with the harmony branch. |
@alexlamsl: can you you fetch the harmony branch and review it/try it live? The package should be now We just need to be super careful with rebase not to have issues like the other time with master. If all is good, then we need @vladikoff to publish the new package/git tag/relase and then you can do it for future releases. |
@XhmikosR a quick
When I did |
Always do Alternatively we could just push and merge from master; this should be the safest, although messier. |
Thanks for the lesson - that worked flawlessly 😉 |
I tried what suggested by @gkatsev, but unfortunately didn't work on my side (see below for error log). I'm currently working around the issue by using a fork of this repository (https://github.com/davideschiera/grunt-contrib-uglify/tree/master) where master has been replaced by a branch created from 9315efc. Is there a better way to refer to Thanks!
|
Just be patient until we publish it on npm. Otherwise clean your cache or make sure you are using the latest LTS 8. |
Sounds good! And thanks a lot for taking care of this ;-) |
use: grunt-contrib-uglify-es
or
|
@frekele thanks for the suggestion! Tried
but got
(node v8.9.3, npm v5.5.1) :-/ |
Manage to get this working by following this link. |
is there a functional commit that can be used while waiting for the npm update? I had been using #harmony w/o issue for months, and just now started failing. I've tried to look for older commits but can't seem to find one that works. |
This treeish should work: ccb95a7 |
@gkatsev I had tried that, also assuming it would be the ideal commit, but didn't have any luck. To clarify a few things; Here's my package.json entry:
The error i get when running:
and the offending line of code:
This error is what brought me to use the #harmony branch, but now it's as if it's magic is completely gone. Am I missing something silly or are others having this same issue? |
@LeviRosol seems to work with current version of $ uglifyjs -V
uglify-es 3.3.4
$ echo 'const string = require("string")' | uglifyjs
const string=require("string"); If you hit an issue with |
I don't think my issue is there though. Up until the latest release of grunt-contrib-uglify a few days ago, things were working as expected. Am I missing something? |
Adding to the comment @frekele made, in addition to using either of his suggested package.json entries, you also need to update your grunt file to use
Pretty obvious oversight on my part, so posting here in hopes it saves someone else some time. |
…rmony branch has been renamed: gruntjs/grunt-contrib-uglify#499
Yup, the new branch has renamed it |
@XhmikosR do we still need to do this or do people use |
To clarify what I meant is that the package name in the #harmony branch (the ccb95a7 treeish) was renamed |
@vladikoff: we need this published on npm as |
two months.. it would take me 5 minutes to fork this and publish it on my own npm account.. why hasn't this been done yet.. |
Published at https://www.npmjs.com/package/grunt-contrib-uglify-es @XhmikosR adding you as contrib to that package |
@vladikoff: you should give npm access to @alexlamsl too since he makes the uglify releases himself. Assuming everyone's careful with rebasing, we shouldn't have any issues. |
Thanks @vladikoff! |
@XhmikosR done! |
@vladikoff @XhmikosR many thanks 👍 |
Hi, would it be possible to get the #harmony branch released on npm? Maybe in a
grunt-contrib-uglify-es
package similar to how uglify-es is released separately fromuglifyjs
?Thanks for your hard work!
The text was updated successfully, but these errors were encountered: