top | item 6725339

(no title)

hellopat | 12 years ago

Thanks for the offer!

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.

Any insight?

discuss

order

fraserxv|12 years ago

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

dikunlun|12 years ago

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.