2 ms·
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&eval
by skrebbel 11y ago
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&loose=true&spec=false&code=class%20A%20%7B%0A%20%20moo()%20%7B%0A%20%20%20%20return%205%3B%0A%20%20%7D%0A%7D%0A%0Anew%20A().moo()%3B 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.
- tleunen 11y agoYou should read this http://www.2ality.com/2015/12/babel6-loose-mode.html http://www.2ality.com/2015/12/babel6-loose-mode.html