{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/6863","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/6863/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/6863/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/6863/events","html_url":"https://github.com/angular/angular-cli/issues/6863","id":240030108,"number":6863,"title":"ng build --prod UglifyJs failure","user":{"login":"joaogarin","id":2866604,"avatar_url":"https://avatars2.githubusercontent.com/u/2866604?v=3","gravatar_id":"","url":"https://api.github.com/users/joaogarin","html_url":"https://github.com/joaogarin","followers_url":"https://api.github.com/users/joaogarin/followers","following_url":"https://api.github.com/users/joaogarin/following{/other_user}","gists_url":"https://api.github.com/users/joaogarin/gists{/gist_id}","starred_url":"https://api.github.com/users/joaogarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaogarin/subscriptions","organizations_url":"https://api.github.com/users/joaogarin/orgs","repos_url":"https://api.github.com/users/joaogarin/repos","events_url":"https://api.github.com/users/joaogarin/events{/privacy}","received_events_url":"https://api.github.com/users/joaogarin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-02T19:39:09Z","updated_at":"2017-07-02T19:39:09Z","closed_at":null,"body":"- [ X] bug report\r\n\r\n### Versions.\r\n@angular/cli: 1.1.1\r\nnode: 6.9.3\r\nos: darwin x64\r\n@angular/animations: 4.2.2\r\n@angular/common: 4.2.2\r\n@angular/compiler: 4.2.2\r\n@angular/core: 4.2.2\r\n@angular/forms: 4.2.2\r\n@angular/http: 4.2.2\r\n@angular/material: 2.0.0-beta.6\r\n@angular/platform-browser: 4.2.2\r\n@angular/platform-browser-dynamic: 4.2.2\r\n@angular/router: 4.2.2\r\n@angular/cli: 1.1.1\r\n@angular/compiler-cli: 4.2.2\r\n@angular/language-service: 4.2.2\r\n\r\n### Repro steps.\r\nUse a package that contains default parameters\r\n\r\n### The log given by the failure.\r\nERROR in vendor.d600eae1111f8d3f3292.bundle.js from UglifyJs\r\nUnexpected token operator «=», expected punc «,» [/Library/WebServer/Documents/contenta/contenta_angular/~/d8-\r\njsonapi-querystring/index.js:39,0][vendor.d600eae1111f8d3f3292.bundle.js:28577,47]\r\n\r\n### Desired functionality.\r\nNot break.\r\n\r\n\r\n### Mention any other details that might be useful.\r\n\r\n the issue is related to https://github.com/angular/angular-cli/issues/5741. I am using a package that exposes es6 and potentially some es7 code, including default parameters.\r\n\r\nCli seems to use UglifyJs without passing it to es5 is that possible? Why does it break on code using default parameters, that is my main question. And what can be done inside the cli (or in my project, or even in the npm package) to go around it.\r\n\r\nThanks for the info"}}
{"actor":{"display_login":"joaogarin"}}