-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not have AMD browser version #21
Comments
Hi @IntelligentCode. You can use it in browser environments via browserify, or by using a loader that supports CommonJS, such as RaveJS or curl. RaveJS is basically a successor to curl. It loads CommonJS without any additional config, and has some nice features like package manager integration (npm and bower). |
how to configure curl ? |
Just use browserify :) |
And just to round things out: RaveJS requires no config at all, just use a package manager: bower install --save rave jiff
// *or* use npm if you prefer--yep, even for browser environments!
npm install --save rave jiff Then create an html file with a script tag that points at rave, see here for bower and here for npm, and that's it. |
So sad, I had hoped to use jiff in my requirejs app :) Its strange I figured it would "just work" like when and rest. |
It wouldn't take that much time to convert it to UMD or Universal Module Definition that would allow it to be loaded in any module loader. |
Well… not any PR. :) Perhaps we should recommend the same flavor of UMD that when.js follows? Boilerplate at the bottom and no support for globals (letting browserify handle that). |
@unscriptable Yes, agreed, thanks :) |
Its easy enough to use browserify to convert the module to AMD. I have used browserify with most and it works great. Seems like having the UMD boilerplate in the code base would be a hassle. |
not have AMD browser version
The text was updated successfully, but these errors were encountered: