markfinger / python-react

Server-side rendering of React components
MIT License
1.62k stars 116 forks source link

Support harmony when processing JSX files #7

Closed markfinger closed 9 years ago

markfinger commented 9 years ago

This requires configuration of both NodeJSX and jsx-loader.

markfinger commented 9 years ago

Took a stab at NodeJSX. Looks like Node will have to be invoked with a --harmony flag. Might be worth waiting until io.js picks up more marketshare and pushes the uptake in ES6/7 features.

Plus, the JSX transformer's handling of harmony features is pretty patchy, no let or destructuring for example.

Personally, I'm not using harmony features and I generally distrust transpilers on account of the disconnect between source/generated, so I'm hesitant to pursue this until there's a justification.