소스 검색

Don't use module.exports

fix_commonjs
Michael Jackson 13 년 전
부모
커밋
d53e4e38fd
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. +6
    -8
      mustache.js

+ 6
- 8
mustache.js 파일 보기

@@ -5,17 +5,15 @@

/*global define: false*/

(function (root, factory) {
(function (factory) {
if (typeof exports === "object" && exports) {
module.exports = factory; // CommonJS
factory(exports); // CommonJS
} else if (typeof define === "function" && define.amd) {
define(factory); // AMD
define(factory({})); // AMD
} else {
root.Mustache = factory; // <script>
factory(Mustache = {}); // <script>
}
}(this, (function () {

var exports = {};
})(function (exports) {

exports.name = "mustache.js";
exports.version = "0.7.2";
@@ -532,4 +530,4 @@

return exports;

}())));
});

불러오는 중...
취소
저장