KyleAMathews / cjsx-loader

coffee-react-transform loader module for webpack
53 stars 11 forks source link

Question about CJSX and Coffee #7

Closed felixakiragreen closed 9 years ago

felixakiragreen commented 9 years ago

Is there a reason you use coffee-react-transform to turn .cjsx into .coffee, and then do a second transform from .coffee into .js? As opposed to using something like coffee-react which does both together in one step?

KyleAMathews commented 9 years ago

AFAIK coffee-react is just a wrapper for coffee-react-transform and coffeescript. It doesn't expose any API to convert from .cjsx all the way to .js.