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

Added jquery injection #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

lionelgaillard
Copy link

If you really want to use jquery-browserify,
just map jquery to jquery-browserify using Browserify's require.

Build tools should not interfere with code.

If you really want to use `jquery-browserify` (useless IMO),
just map `jquery` to `jquery-browserify` using Browserify's `require`.

Build tools should not interfere with code.
arschmitz added a commit to arschmitz/jquery-mousewheel that referenced this pull request May 22, 2015
arschmitz added a commit to arschmitz/jquery-mousewheel that referenced this pull request May 22, 2015
arschmitz added a commit to arschmitz/jquery-mousewheel that referenced this pull request May 22, 2015
arschmitz added a commit to arschmitz/jquery-mousewheel that referenced this pull request Jul 1, 2015
@kevinparkerson
Copy link

I was about to make this PR myself :) Love this plugin! If you merge this PR to improve the UMD wrapper, it would make it a tad cleaner to use in a CommonJS environment

@mgol
Copy link
Member

mgol commented Jun 5, 2016

Not sure about that... In jQuery Core if you use Browserify jQuery will be exported but in Node outside of Browserify a factory is exported so that Node users can then provide their own window implementation; see:
https://github.com/jquery/jquery/blob/e06fda69f00082b44fd39ce8e851f72d29999011/src/wrapper.js#L28-L35

Wouldn't a similar approach work here?

Base automatically changed from master to main March 16, 2021 16:38
@ghost
Copy link

ghost commented Sep 27, 2021

Bumping this!

@mgol
Copy link
Member

mgol commented Sep 27, 2021

My comment from #127 (comment) still stands; in my opinion, it'd be better to duplicate the jQuery wrapper. @dmethvin what do you think?

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.

3 participants