{"action":"opened","issue":{"url":"https://api.github.com/repos/ThomasR/minislides/issues/6","repository_url":"https://api.github.com/repos/ThomasR/minislides","labels_url":"https://api.github.com/repos/ThomasR/minislides/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ThomasR/minislides/issues/6/comments","events_url":"https://api.github.com/repos/ThomasR/minislides/issues/6/events","html_url":"https://github.com/ThomasR/minislides/issues/6","id":142064527,"number":6,"title":"Better compression by using ES6 features","user":{"login":"ThomasR","id":136820,"avatar_url":"https://avatars.githubusercontent.com/u/136820?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasR","html_url":"https://github.com/ThomasR","followers_url":"https://api.github.com/users/ThomasR/followers","following_url":"https://api.github.com/users/ThomasR/following{/other_user}","gists_url":"https://api.github.com/users/ThomasR/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasR/subscriptions","organizations_url":"https://api.github.com/users/ThomasR/orgs","repos_url":"https://api.github.com/users/ThomasR/repos","events_url":"https://api.github.com/users/ThomasR/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T14:03:50Z","updated_at":"2016-03-19T14:03:50Z","closed_at":null,"body":"All currently supported browsers are ES6 compatible. So:\r\n* Instead of `function`, use `=>`\r\n* Replace `.map.call(foo, function(bar){…});` by `for (let bar of foo) {…}`\r\n\r\nUnfortunately, neither uglifyjs nor esprima/esmangle/escodegen support this.\r\nThere are four options:\r\n* Wait for estools / uglifyjs to implement that stuff\r\n* Fork and implement the required features\r\n* Use a totally different tool\r\n* Manually edit the minified result"}}