{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/3453","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/3453/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/3453/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/3453/events","html_url":"https://github.com/webpack/webpack/issues/3453","id":194658814,"number":3453,"title":"Error due to change in uglify js","user":{"login":"terencechow","id":1937276,"avatar_url":"https://avatars.githubusercontent.com/u/1937276?v=3","gravatar_id":"","url":"https://api.github.com/users/terencechow","html_url":"https://github.com/terencechow","followers_url":"https://api.github.com/users/terencechow/followers","following_url":"https://api.github.com/users/terencechow/following{/other_user}","gists_url":"https://api.github.com/users/terencechow/gists{/gist_id}","starred_url":"https://api.github.com/users/terencechow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terencechow/subscriptions","organizations_url":"https://api.github.com/users/terencechow/orgs","repos_url":"https://api.github.com/users/terencechow/repos","events_url":"https://api.github.com/users/terencechow/events{/privacy}","received_events_url":"https://api.github.com/users/terencechow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-09T17:58:57Z","updated_at":"2016-12-10T15:13:29Z","closed_at":null,"body":"Confirmed. On the latest version of webpack 2 beta 27. \r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nBug. \r\n\r\n**What is the current behavior?**\r\nGet the following UglifyJS error: \r\nUnexpected token: punc()) \r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nI can't reproduce it unfortunately because I dont know where in my code uglify js is causing a break but I can give direction / solutions which I leave below.\r\n\r\n**What is the expected behavior?**\r\nExpected behaviour is no error\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\nnot a feature\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.**\r\n\r\nbrowser, os, node js version aren't relevant here. The issue seems to be related to Uglify JS which has upgraded their github code to 2.7.5, 10 days ago. This resulted in webpack which does not pin uglify js, to upgrade to 2.7.5 and this causes the error i'm experiencing. Currently a solution has been to fork webpack's current version and change the package.json to point to the uglify-js#harmony branch because it seems this may be related to uglifying ES6 code. Not all ES6 code has this problem but some of it does. I wonder if there could be a configuration in webpack that determines if a user wants to use uglify-js or uglify-js#harmony? "},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/266215096","html_url":"https://github.com/webpack/webpack/issues/3453#issuecomment-266215096","issue_url":"https://api.github.com/repos/webpack/webpack/issues/3453","id":266215096,"user":{"login":"terencechow","id":1937276,"avatar_url":"https://avatars.githubusercontent.com/u/1937276?v=3","gravatar_id":"","url":"https://api.github.com/users/terencechow","html_url":"https://github.com/terencechow","followers_url":"https://api.github.com/users/terencechow/followers","following_url":"https://api.github.com/users/terencechow/following{/other_user}","gists_url":"https://api.github.com/users/terencechow/gists{/gist_id}","starred_url":"https://api.github.com/users/terencechow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terencechow/subscriptions","organizations_url":"https://api.github.com/users/terencechow/orgs","repos_url":"https://api.github.com/users/terencechow/repos","events_url":"https://api.github.com/users/terencechow/events{/privacy}","received_events_url":"https://api.github.com/users/terencechow/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T15:13:29Z","updated_at":"2016-12-10T15:13:29Z","body":"No, we can close this ticket. This was mostly for documentation purposes\nfor future people who come across this error. I didn't want to close it in\ncase you were not aware of the uglify js harmony concerns.\n\nOn 10 Dec 2016 1:15 pm, \"Kees Kluskens\" <notifications@github.com> wrote:\n\n> Okay, so is there anything left in this ticket that we can change in\n> webpack? About the switching to uglify-js#hamony thing, we are aware of\n> that issue and looking into possibilities of removing the uglify-js plugin\n> from the webpack core (nothing sure yet).\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/webpack/webpack/issues/3453#issuecomment-266207214>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AB2PfPyoM2_ct63_fWsCgzUK8OFoN2CPks5rGqXpgaJpZM4LJMui>\n> .\n>\n"}}
{"actor":{"display_login":"terencechow"}}