2016-01-08 15:29:42 -06:00

18 lines
337 B
JavaScript

(function (global, factory) {
if (typeof define === "function" && define.amd) {
define("MyLib", [], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.MyLib = mod.exports;
}
})(this, function () {
"use strict";
foobar();
});