UNPKG

webpack

Version:

Packs CommonJs Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.

41 lines (40 loc) 1.7 kB
/******/(function(document, undefined) { /******/ return function(modules) { /******/ var installedModules = {}, installedChunks = {0:1}; /******/ function require(moduleId) { /******/ if(typeof moduleId !== "number") throw new Error("Cannot find module '"+moduleId+"'"); /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ var module = installedModules[moduleId] = { /******/ exports: {} /******/ }; /******/ modules[moduleId](module, module.exports, require); /******/ return module.exports; /******/ } /******/ require.e = function(chunkId, callback) { /******/ if(installedChunks[chunkId] === 1) return callback(require); /******/ if(installedChunks[chunkId] !== undefined) /******/ installedChunks[chunkId].push(callback); /******/ else { /******/ installedChunks[chunkId] = [callback]; /******/ var head = document.getElementsByTagName('head')[0]; /******/ var script = document.createElement('script'); /******/ script.type = 'text/javascript'; /******/ script.charset = 'utf-8'; /******/ script.src = modules.c+chunkId+modules.a; /******/ head.appendChild(script); /******/ } /******/ }; /******/ require.modules = modules; /******/ require.cache = installedModules; /******/ window[modules.b] = function(chunkId, moreModules) { /******/ for(var moduleId in moreModules) /******/ modules[moduleId] = moreModules[moduleId]; /******/ var callbacks = installedChunks[chunkId]; /******/ installedChunks[chunkId] = 1; /******/ for(var i = 0; i < callbacks.length; i++) /******/ callbacks[i](require); /******/ }; /******/ return require(0); /******/ } /******/})(document)