Closed jwbrady closed 9 years ago
Great idea. I shall update and commit in the morning. I thought I was using babelify, weird. I shall also switch that out too!
Thanks for the tip.
Turns out, by doing both #12 and #13, it now does extra unnecessary work. Since you targeted the precompiled code using main
in package.json, browserify no longer needs babelify, but still applies it due to #12. I suggest removing the browserify.transform field in package.json.
If you use the "browserify.transform" feature, it will make it easier for those who also use browserify at the app level to use your npm package. The two changes required to your package.json are: add a dependency on reactify (you currently only have a dev dependency), add at the below line.
You may also wish to consider using babelify instead. It is based on the babel project which is replacing the react-tools project that reactify is based on. If you do, you can use this line instead (as well as a dependency on babelify):