{"action":"created","issue":{"url":"https://api.github.com/repos/videojs/video.js/issues/1812","labels_url":"https://api.github.com/repos/videojs/video.js/issues/1812/labels{/name}","comments_url":"https://api.github.com/repos/videojs/video.js/issues/1812/comments","events_url":"https://api.github.com/repos/videojs/video.js/issues/1812/events","html_url":"https://github.com/videojs/video.js/issues/1812","id":54819300,"number":1812,"title":"Add ES6 Transpiler?","user":{"login":"heff","id":166,"avatar_url":"https://avatars.githubusercontent.com/u/166?v=3","gravatar_id":"","url":"https://api.github.com/users/heff","html_url":"https://github.com/heff","followers_url":"https://api.github.com/users/heff/followers","following_url":"https://api.github.com/users/heff/following{/other_user}","gists_url":"https://api.github.com/users/heff/gists{/gist_id}","starred_url":"https://api.github.com/users/heff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heff/subscriptions","organizations_url":"https://api.github.com/users/heff/orgs","repos_url":"https://api.github.com/users/heff/repos","events_url":"https://api.github.com/users/heff/events{/privacy}","received_events_url":"https://api.github.com/users/heff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/videojs/video.js/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/videojs/video.js/labels/needs:%20discussion","name":"needs: discussion","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-19T22:17:35Z","updated_at":"2015-03-02T20:00:53Z","closed_at":null,"body":"With the addition of browserify we're adding a required build step for running the code (i.e. can't just load the source files directly into the browser). Without going overboard, we could also consider adding other required build steps, like an ES6 transpiler.\r\n\r\nA benefit would be that we could write more modern javascript today. A downside would be that it's yet another layer of abstraction adding potential complication to the debugging process. \r\n\r\nAny other positives/negatives/comments/thoughts?\r\n\r\nAs a side note, the addition of ES6 would add the use of `let`, which would be a good point to re-evalute our single-var vs. multiple-var style rule. See #1781.\r\n"},"comment":{"url":"https://api.github.com/repos/videojs/video.js/issues/comments/76801183","html_url":"https://github.com/videojs/video.js/issues/1812#issuecomment-76801183","issue_url":"https://api.github.com/repos/videojs/video.js/issues/1812","id":76801183,"user":{"login":"mmcc","id":794988,"avatar_url":"https://avatars.githubusercontent.com/u/794988?v=3","gravatar_id":"","url":"https://api.github.com/users/mmcc","html_url":"https://github.com/mmcc","followers_url":"https://api.github.com/users/mmcc/followers","following_url":"https://api.github.com/users/mmcc/following{/other_user}","gists_url":"https://api.github.com/users/mmcc/gists{/gist_id}","starred_url":"https://api.github.com/users/mmcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmcc/subscriptions","organizations_url":"https://api.github.com/users/mmcc/orgs","repos_url":"https://api.github.com/users/mmcc/repos","events_url":"https://api.github.com/users/mmcc/events{/privacy}","received_events_url":"https://api.github.com/users/mmcc/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T20:00:53Z","updated_at":"2015-03-02T20:00:53Z","body":"We would need to do a spike to confirm everything works as expected, but based on what I'm reading in Babel's docs, we can use import syntax to simply require npm modules as well."}}