Skip to content

Conversation

bashmish
Copy link
Contributor

@bashmish bashmish commented Mar 1, 2015

jQuery and window.jQuery are equal in context of simple page include.

Its impossible to use this plugin in context of CommonJS/WebPack because the shim requires to set jQuery dependancy outside the module and setting it global (window.jQuery) is just wrong, so usually you just set argument 'jQuery' in your shim to jquery like this

require('imports?jQuery=jquery!is-in-viewport');

More on this http://webpack.github.io/docs/shimming-modules.html

jQuery and window.jQuery are equal in context of simple page include.

Its impossible to use this plugin in context of CommonJS/WebPack because the shim requires to set jQuery dependancy outside the module and setting it global (window.jQuery) is just wrong, so usually you just set argument 'jQuery' in your shim to jQuery like this

    require('imports?jQuery=jquery!is-in-viewport');

More on this http://webpack.github.io/docs/shimming-modules.html
zeusdeux added a commit that referenced this pull request Mar 2, 2015
@zeusdeux zeusdeux merged commit bbd9dc7 into zeusdeux:master Mar 2, 2015
@zeusdeux
Copy link
Owner

zeusdeux commented Mar 2, 2015

LGTM. Landed in 2.2.3. Thanks. :)

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