Skip to content
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

AMD support #6

Closed
alejandroiglesias opened this issue Mar 20, 2013 · 3 comments
Closed

AMD support #6

alejandroiglesias opened this issue Mar 20, 2013 · 3 comments

Comments

@alejandroiglesias
Copy link

Is there any chance of AMD support coming?

@desandro
Copy link
Owner

I have no official plans, but yes I would like to support AMD / Require.js, but I don't want to be exclusively AMD. I am open to PR for this issue.

This is a bit tricky with this library as it has its own dependencies, so I need a clean way to do dependencies with both AMD and window.dependency.

@alejandroiglesias
Copy link
Author

I recommend you to follow the UMD (Universal Module Definition) patterns. Seems to work well with both AMD, CommonJS and global fallback.

@alejandroiglesias
Copy link
Author

Thanks pal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants