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

Make jQuery a peer dependency and require it. #109

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jacksonrayhamilton
Copy link

Fixes #40. In CommonJS environments, jQuery would still need to be a global variable, which made using this library more difficult. Also, adding it as a "*" peer dependency causes NPM to warn that it needs to be installed, without restricting the user to a particular jQuery version.

I acknowledge that some people still might want to specify their own jQuery object, but I am choosing to treat that as a separate feature request. This change can be considered a "minor correction" independent of other loading enhancements, since it aligns with the way jQuery is currently loaded in AMD environments. In reaching that parallel, jQuery will be loaded in each of the supported environments' most common manners, respectively.

@revelt
Copy link

revelt commented Oct 22, 2018

hi all! Nearly a year passed, can somebody please either approve or close this PR?

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

Successfully merging this pull request may close these issues.

2 participants