Comment on Xto6 modernizes your JavaScript codeparentComments−skrebbel10yFYI, when compiled with Babel 5's loose mode, the transpiled code is roughly similar to what you'd hand-write:https://babeljs.io/repl/#?experimental=true&evaluate=true&lo...I didn't test the performance impact though. Also it's still a mystery to me how to enable Loose mode in Babel 6.−tleunen10yYou should read this http://www.2ality.com/2015/12/babel6-loose-mode.html
Comments
FYI, when compiled with Babel 5's loose mode, the transpiled code is roughly similar to what you'd hand-write:
https://babeljs.io/repl/#?experimental=true&evaluate=true&lo...
I didn't test the performance impact though. Also it's still a mystery to me how to enable Loose mode in Babel 6.
You should read this http://www.2ality.com/2015/12/babel6-loose-mode.html