diff --git a/src/exports.js b/src/exports.js index 37b797075..2d5c56f8a 100644 --- a/src/exports.js +++ b/src/exports.js @@ -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