mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix #13789: Don't throw when module === null. Close gh-1269. Close gh-1280. (cherry-picked from eabb56c274
)
This commit is contained in:
parent
272db246be
commit
f57f86e6b1
@ -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
|
||||
// module pattern (including browserify). Do not create the global, since
|
||||
// the user will be storing it themselves locally, and globals are frowned
|
||||
|
Loading…
Reference in New Issue
Block a user