-
Notifications
You must be signed in to change notification settings - Fork 3k
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 version 1.0.17 #3693
Uglify version 1.0.17 #3693
Comments
Somehow the problem seems to be with the TS compilation of ui-router/core This line https://github.com/ui-router/core/blob/master/src/common/common.ts#L512 is compiled to
|
this breaks my entire build |
@mistic100 exactly the same for me with. To run this version i needed to exclude it from grunt-contrib-concat, and extend the import manually afterwards. Need to lock my dependencies! |
@mistic100 great find! Could this potentially be a TypeScript bug? According to the tsconfig.json, the project is targeting ES5: https://github.com/ui-router/core/blob/master/tsconfig.json#L7. According to MDN, "ECMAScript 2017 allows trailing commas in function parameter lists." |
I copied the
Something else must be adding it? |
Any update on this bug? This is breaking my build. I need to go back to v1.0.15 (since v1.0.16 is not available to download). Thanks |
It was probably fixed by ui-router/core@578dc09 and 5fb93d0 now we need a release :-) |
Can confirm that I am getting this too. Took me ages to find out the cause..... |
This was a puzzler because the published code on NPM doesn't have any trailing commas. Then I remembered that I added a git precommit hook which runs prettier on all staged files for commit. Finally I remembered that the uirouter bower publish script commits the bundled files to git, and prettier was being run on them. This issue only affects bower users. (please stop using bower 😉) I will fix this issue and publish a new release ASAP. |
Im having trouble using uglify on version 1.0.17.
Getting following error:
JS_Parse_Error { message: 'Unexpected token: punc ())'
stack: 'Error\n at new JS_Parse_Error (/node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/parse.js:196:18)
Best regards
Andreas
The text was updated successfully, but these errors were encountered: