Closed konsumer closed 9 years ago
does this affect AMD/requirejs users?
I've only used Raphael with requirejs once. Not planning on doing it again in production =)
If they pre-require, it's the same. (AMD is asynchronous, unless it's already been included.)
But, as a sidenote, it already wasn't working for AMD people.
Ok, and I saved your example in https://github.com/crccheck/raphael-svg-import-classic/wiki/Module-Loaders
you can see the terrible terrible thing I did for requirejs there too.
I'd also be happy to do a proper UMD wrap, if this is desired. My original goal was minimal codebase impact.
agreed. I figured that'd happen eventually, but I'd prefer it happen organically rather than push complexity no one needs yet. This was written before I worried about such things.
CommonJS support for npm & browserify.
Example Usage (browserify & superagent):