-
Notifications
You must be signed in to change notification settings - Fork 689
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
Added amd support (2 lines) #79
Conversation
nack adding project specific code is imo against pagejs style |
I wouldn't classify this PR as project specific (unless you feel the existing line dedicated to load in That being said, its obviously up to you (mantainers). |
Came here looking for AMD support and found this issue. Seems the easiest solution given the maintainers' desire not to include it is to maintain an AMD-friendly fork, so that's what I've done. FWIW I'd agree with @acornejo that this isn't project-specific code - AMD is just as much a standard as Node modules (in fact Node modules violate CommonJS Modules/1.1.1 as far as I can tell, by allowing modules to replace the |
@Rich-Harris I was also forced to maintain a fork. Its available here: https://github.com/acornejo/page.js It has not only AMD support, but a lot of other patches which have been proposed here but that never made it to master. These include:
I am also working on a completely new project which provides all the functionality I miss from page.js, haven't had time to spend on it recently, but hopefully eventually I can complete it and release it as an alternative. |
@acornejo Ah, nice. Will scrap my fork and use yours. |
I am not the only maintainer, others may think differently, also try to
|
Thanks @nwmcsween. My patch would be basically identical to this pull request, so rather than cluttering things up with an identical PR it's probably better that I just add my '+1' here. Appreciate the invitation though. |
Added support for loading as AMD module using requirejs.
The additional code required is minimal, and lots of people (including myself) use AMD modules.
This would take care of #72 and #70