Skip to content

Instantly share code, notes, and snippets.

@tomchen
Created May 18, 2021 18:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomchen/94d1c75925497416ba7b07ad6b7b4be3 to your computer and use it in GitHub Desktop.
Save tomchen/94d1c75925497416ba7b07ad6b7b4be3 to your computer and use it in GitHub Desktop.
UMD Template
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// AMD
define([], factory);
} else if (typeof module === "object" && module.exports) {
// Node
module.exports = factory();
} else {
// Browsers
root.logdf5e4y = factory();
}
})(typeof self !== "undefined" ? self : this, function () {
if (typeof fetch !== "function") {
} else {
}
return null;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment