Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Created September 13, 2012 14:02
Show Gist options
  • Save unscriptable/3714527 to your computer and use it in GitHub Desktop.
Save unscriptable/3714527 to your computer and use it in GitHub Desktop.
cjs umd
(function (define) {
define(function (require, exports, module) {
return 'foo';
});
}(
typeof define == 'function' && define.amd
? define
: function (factory) { factory(require, exports, module); }
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment