Skip to content

Instantly share code, notes, and snippets.

@jeremenichelli
Last active December 12, 2017 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremenichelli/67c8cdb593e51dfdfb2e28547a158dd1 to your computer and use it in GitHub Desktop.
Save jeremenichelli/67c8cdb593e51dfdfb2e28547a158dd1 to your computer and use it in GitHub Desktop.
(function(modules) {
var installedModules = {};
function WEBPACK_REQUIRE_METHOD(id) {
// if module was already imported, return its exports
if (installedModules[id]) {
return installedModules[id].exports;
}
// create module object and cache it
var module = installedModules[id] = {
id: id,
exports: {}
};
// call module’s function wrapper
modules[id](module, module.exports, WEBPACK_REQUIRE_METHOD);
}
// kick off by calling entry module
WEBPACK_REQUIRE_METHOD(0);
})([
/* 0 module */
function() {},
/* 1 module */
function() {},
/* n module */
function() {}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment