News for hackers. Stuff that matters.
Re:Bublé: a fast, batteries-included ES2015 transpiler by tjelen on Monday May 16, 2016 @05:23AM (#11705195)
This look really great, thanks! Any ideas how to connect it with JSX code? Is it possible to use it with the JSXTransform from React v0.13 or is there any other alternative (and preferably lightweight) JSX transformer that is not Babel?
Re:Bublé: a fast, batteries-included ES2015 transpiler by rich_harris on Monday May 16, 2016 @09:00AM (#11705960)
There's an issue open for JSX: https://gitlab.com/Rich-Harris/buble/issues/26. The short answer is it's definitely on the TODO list, either as a separate preprocessing step that uses the same techniques (buble-jsx), or in the tool itself. Just haven't got round to it yet :)
Re:Bublé: a fast, batteries-included ES2015 transpiler by aspiringuser on Monday May 16, 2016 @10:12AM (#11706345)
I continue to use babel 5.x which is much easier to use than babel 6.x which cannot be globally installed. Babel 5.x supports jsx by default. Would be great if buble would have feature parity with babel 5.x to ease the switch over.
Re:Bublé: a fast, batteries-included ES2015 transpiler by JasonSage on Monday May 16, 2016 @07:33AM (#11705628)
It appears somebody has made a standalone JSX transform that will operate directly on files if you desire, and output to string.

https://github.com/alexmingoia/jsx-transform/

I think it would not be too much work to wrap it in a script to let you pipe into/out of other build steps.

Re:Bublé: a fast, batteries-included ES2015 transpiler by TheAceOfHearts on Monday May 16, 2016 @05:43AM (#11705258)
I haven't used it, but another option might be TypeScript with the "jsx" flag. Or use babel, but only with the react preset.