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