4 ms·
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
by tjelen 10y ago
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?
- TheAceOfHearts 10y agoI haven't used it, but another option might be TypeScript with the "jsx" flag. Or use babel, but only with the react preset.
- JasonSage 10y agoIt 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/ 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.
- rich_harris 10y agoThere's an issue open for JSX: https://gitlab.com/Rich-Harris/buble/issues/26 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 :)
- aspiringuser 10y agoI 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.