Skip to content

Instantly share code, notes, and snippets.

@tpai
Last active February 12, 2024 00:06
Show Gist options
  • Save tpai/24d45677903069fba9cac7787d402799 to your computer and use it in GitHub Desktop.
Save tpai/24d45677903069fba9cac7787d402799 to your computer and use it in GitHub Desktop.
webpackUMD
(function webpackUniversalModuleDefinition(root, factory) {
if (typeof exports === 'object' && typeof module === 'object') // CommonJS(2)
module.exports = factory(require(__require_module__));
else if (typeof define === 'function' && define.amd) // AMD
define([__require_module__], factory);
else if (typeof exports === 'object') // CommonJS(1)
exports[__module_name__] = factory(require(__require_module__));
else // Global Variable
root[__module_name__] = factory(root[__require_module__]);
})(typeof self !== 'undefined' ? self : this, function() {
return (function(modules){
/* webpack helpers */
})([ /* vendors and modules */ ]);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment