@abe That’s awesome: the future is here! Or at least it’s on its way…
In my ordinary Chrome browser, I go to
It appears that things like the fat arrow work today, but other ES6 constructs, such as classes, have not made it into Chromium yet. Therefore, you still need a transpiler to get some of those other features.
Personally, I use jstransform, which is bundled with
react-tools, so my
package.json includes the following snippet:
"prepublish": "node_modules/.bin/jsx --harmony --strip-types src/ lib/"
Then I use gulp to watch the files in my
src directory and write the transformed versions into the
lib directory during iterative development. I went with gulp because of a discussion on this thread. I’ll try to write up a blog post in the near future that explains this workflow better.
Traceur is also a very popular ES6 transpiler from Google, though as you might expect, it does not recognize jsx, which I use since I write packages that use React.
@Trudko if you drop in the snippet that @abe suggested for doing inheritance and then use the fat arrow, then I think you’ll be in pretty good shape without having to set up a full-on transpiler toolchain. I’m curious to hear how that works out!