Skip to content

Instantly share code, notes, and snippets.

@vokeio vokeio/umd.js
Created Feb 16, 2017

Embed
What would you like to do?
A better way then umd
var NAME = '';
var MODULE = {} || function () {};
(function (t, n, m) {
if (typeof m === 'function') m = m(t);
if (typeof t.define !== 'undefined') t.define([n], m);
else if (typeof t.module !== 'undefined') t.module.exports = m;
else if (typeof t.window !== 'undefined') t.window[n] = m;
else return m;
}(this, NAME, MODULE));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.