jquery-browserify
jquery-browserify copied to clipboard
jQuery leaking to window.$
When running jQuery with browserify, loading it using require('jquery-browserify'), jQuery still installs itself in the global window object as window.$ and window.jQuery.
This should not happen automatically.
The whole point of having require available is that we can get rid of libraries in the global scope.
It also prevents conflicts with other libraries that use jquery.
Absolutely. This defeats the purpose of this library.
I'd recommend using https://github.com/kirbysayshi/node-ddd-jquery instead. It doesn't leak and actually only packages what you really need.