mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix #13789: Don't throw when module === null. Close gh-1269.
This commit is contained in:
parent
df372ad6e7
commit
eabb56c274
@ -1,4 +1,4 @@
|
|||||||
if ( typeof module === "object" && typeof module.exports === "object" ) {
|
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
|
||||||
// Expose jQuery as module.exports in loaders that implement the Node
|
// Expose jQuery as module.exports in loaders that implement the Node
|
||||||
// module pattern (including browserify). Do not create the global, since
|
// module pattern (including browserify). Do not create the global, since
|
||||||
// the user will be storing it themselves locally, and globals are frowned
|
// the user will be storing it themselves locally, and globals are frowned
|
||||||
|
Loading…
Reference in New Issue
Block a user