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

jQuery compatible (but not required) + AMD + CommonJS? #136

Open
alvarotrigo opened this issue Jul 19, 2018 · 1 comment
Open

jQuery compatible (but not required) + AMD + CommonJS? #136

alvarotrigo opened this issue Jul 19, 2018 · 1 comment

Comments

@alvarotrigo
Copy link

I'm a bit confused with so many different UMD templates.

What if I want to build a javascript library, which can be used by itself, or together with a jQuery adaptor, and I also want it to be compatible with AMD and commonJS?

In that case, which of the UMD templates is the appropriate one?

@HariharanUmapathi
Copy link

@alvarotrigo your required template format is jquery template you can handle additionaly if jquery is not available you can attach your code to the window level https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js

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