Skip to content

Commit eabb56c

Browse files
eddiemongemgol
authored andcommitted
Fix #13789: Don't throw when module === null. Close jquerygh-1269.
1 parent df372ad commit eabb56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if ( typeof module === "object" && typeof module.exports === "object" ) {
1+
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
22
// Expose jQuery as module.exports in loaders that implement the Node
33
// module pattern (including browserify). Do not create the global, since
44
// the user will be storing it themselves locally, and globals are frowned

0 commit comments

Comments
 (0)