Do you have any opinions on Require.js vs Browserify? I've been using Require.js recently, but just discovered Browserify, and there seems to be mixed opinions on these two, but most blog articles and the like seem a little dated. Probably will have to build something non-trivial in both to know for sure, but if you have any insight on these two, would be glad to hear it.
My main concern is non-CommonJS libraries. I haven't really had any luck with any of the Browserify shim modules out there. Any jQuery plugin that I've used with Browserify I ended up modifying myself to support CommonJS. Even then, I'm not sure I was doing it right.
Hmm. I got the same issue while trying to use certain libraries. Not all of them is suitable for using in the client side. I changed some of the code and using the `module.exports` method to export it for browserify to use. Luckily most of the code is exposing an object already, so may not that hard to change it. The best approach may wrapper it and send the author of the lib a pull request. You may also check the video here. http://www.youtube.com/watch?v=YabwsSq6ASQ
We were just sharing an attempt to use it and explaining why we considered using Browserify. If you want more insight on it we will follow through with a more technical approach to it.