You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
I don't think we plan to support this. You can either use createClass or write your own Webpack/Browserify transform which applies these transforms to module.exports keys that look like React components. Related: gaearon/react-hot-loader#216.
I am writing my code in
livescript
and chaining the output into babel-loader (evil, I know)I am essentially transpiling es5 javascript code for the sole benefit of using this plugin.
Anyhow, livescript has its own syntactic sugar for classes:
That compiles (pre-babel) into:
Now, all of the Above runs just fine, however react-tranform does not recognize the resulting node tree.
So, my question is, would it be possible to modify the filter in react-transform to identify the above example of livescript generated code?
And, yes if I use this syntax, everything works great:
But I really want my cake, and to eat it too. 🍰
Any suggestions would be appreciated.
The text was updated successfully, but these errors were encountered: