diff --git a/mustache.js b/mustache.js index 4843e3c..7992c6e 100644 --- a/mustache.js +++ b/mustache.js @@ -8,7 +8,7 @@ var Mustache; (function (exports) { - if (typeof module !== "undefined" && typeof module.exports !== "undefined") { + if (typeof module !== "undefined" && module.exports) { module.exports = exports; // CommonJS } else if (typeof define === "function") { define(exports); // AMD