sbt-reactjs
sbt-reactjs copied to clipboard
any plans for ReactJS 0.14?
Im not using this anymore, so no. Ill happily accept a PR though.
+10
@ddispaltro are you using an alternative for play?
no, I am just using different tools at the moment.
For those wondering, add the following to your plugins.sbt:
dependencyOverrides += "org.webjars" % "react" % "0.14.3"
that seemed to do the trick for me.
I still needed to add a dependency on react to my build.sbt as well.
One thing to note is that facebook has deprecated jstransform, which appears to be the underlying tool used by this plugin to actually transform jsx into javascript, in favor of babel.
https://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html
The plugin works perfectly fine with 0.14 now
@stejskal I'm looking to update to React v15.x now, do you possibly have an idea of how to use babel in the build pipeline instead?
For babel i use this sbt babel plugin: https://github.com/zenato/sbt-babel you have to configure babel to handle jsx, but its easy if you follow the directions in the babel docs.
Just to add to @stejskal
Just create a .babelrc with:
{
"presets": ["env", "react"]
}
And npm-install the babel and the relevant presets, as with:
npm install --save-dev babel-core babel-preset-env babe-preset-react