News for hackers. Stuff that matters.

Ask HN: Should You be coding a client-side open source in ES6?

Most browsers (including many old Android/iPhones) still do not fully (or even partially) support ES6 features such as destruction, arrow functions, native promise etc, so people who do not use stuff like Babel on their js bundle files will not be able to use it on their production environments..
( 2 comments | on HN )
Re:Ask HN: Should You be coding a client-side open source in... by nostrademons on Thursday August 04, 2016 @03:16PM (#12227788)
Code in ES6, but run it through Babel yourself before publishing it. npm provides a 'prepublish' hook so you can do this automatically.
Re:Ask HN: Should You be coding a client-side open source in... by smt88 on Thursday August 04, 2016 @03:35PM (#12227896)
Yes