diff --git a/mustache.js b/mustache.js index 4c9f090..9294385 100644 --- a/mustache.js +++ b/mustache.js @@ -5,15 +5,19 @@ /*global define: false*/ -(function (root, mustache) { +(function (root, factory) { if (typeof exports === "object" && exports) { - module.exports = mustache; // CommonJS - } else if (typeof define === "function" && define.amd) { - define(mustache); // AMD + factory(exports); // CommonJS } else { - root.Mustache = mustache; //