UNPKG

webpack

Version:

Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.

257 lines (214 loc) 9.12 kB
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ exports: {}, /******/ id: moduleId, /******/ loaded: false /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.loaded = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /*!******************************************!*\ !*** ./resolving/browser-field/index.js ***! \******************************************/ /***/ function(module, exports, __webpack_require__) { it("should replace a module with a module", function() { __webpack_require__(/*! replacing-module1 */ 2).should.be.eql("new-module"); }); it("should replace a module with a file in a module", function() { __webpack_require__(/*! replacing-module2 */ 3).should.be.eql("new-module/inner"); }); it("should replace a module with file in the same module", function() { __webpack_require__(/*! replacing-module3 */ 1).should.be.eql("new-module/inner"); }); it("should replace a module with a file in the current module", function() { __webpack_require__(/*! replacing-module4 */ 5).should.be.eql("replacing-module4/module"); }); it("should replace a file with another file", function() { __webpack_require__(/*! replacing-file1 */ 4).should.be.eql("new-file"); }); it("should replace a file with a module", function() { __webpack_require__(/*! replacing-file2 */ 6).should.be.eql("new-module"); }); it("should replace a file with a file in a module", function() { __webpack_require__(/*! replacing-file3 */ 7).should.be.eql("new-module/inner"); }); it("should replace a file in a directory with another file", function() { __webpack_require__(/*! replacing-file4 */ 10).should.be.eql("new-file"); }); it("should ignore recursive module mappings", function() { __webpack_require__(/*! recursive-module */ 8).should.be.eql("new-module"); }); it("should use empty modules for ignored modules", function() { __webpack_require__(/*! ignoring-module */ 9).module.should.be.eql({}); __webpack_require__(/*! ignoring-module */ 9).file.should.be.eql({}); __webpack_require__(/*! ignoring-module */ 9).module.should.not.be.equal(__webpack_require__(/*! ignoring-module */ 9).file); }); // Errors undefined; undefined; undefined; undefined; /***/ }, /* 1 */ /*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module3/index.js ***! \**************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! new-module */ 13); /***/ }, /* 2 */ /*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module1/index.js ***! \**************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! wrong-module */ 14); /***/ }, /* 3 */ /*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module2/index.js ***! \**************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! wrong-module */ 13); /***/ }, /* 4 */ /*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file1/index.js ***! \************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./file */ 16); /***/ }, /* 5 */ /*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module4/index.js ***! \**************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! wrong-module */ 12); /***/ }, /* 6 */ /*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file2/index.js ***! \************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./file */ 14); /***/ }, /* 7 */ /*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file3/index.js ***! \************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./file */ 13); /***/ }, /* 8 */ /*!*************************************************************!*\ !*** ./resolving/browser-field/~/recursive-module/index.js ***! \*************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! new-module */ 14); /***/ }, /* 9 */ /*!************************************************************!*\ !*** ./resolving/browser-field/~/ignoring-module/index.js ***! \************************************************************/ /***/ function(module, exports, __webpack_require__) { exports.module = __webpack_require__(/*! wrong-module */ 11); exports.file = __webpack_require__(/*! ./file */ 15); /***/ }, /* 10 */ /*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/index.js ***! \************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./dir */ 17); /***/ }, /* 11 */ /*!******************************!*\ !*** wrong-module (ignored) ***! \******************************/ /***/ function(module, exports, __webpack_require__) { /* (ignored) */ /***/ }, /* 12 */ /*!***************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module4/module.js ***! \***************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = "replacing-module4/module"; /***/ }, /* 13 */ /*!*******************************************************!*\ !*** ./resolving/browser-field/~/new-module/inner.js ***! \*******************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = "new-module/inner"; /***/ }, /* 14 */ /*!*******************************************************!*\ !*** ./resolving/browser-field/~/new-module/index.js ***! \*******************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = "new-module"; /***/ }, /* 15 */ /*!************************!*\ !*** ./file (ignored) ***! \************************/ /***/ function(module, exports, __webpack_require__) { /* (ignored) */ /***/ }, /* 16 */ /*!***************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file1/new-file.js ***! \***************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = "new-file"; /***/ }, /* 17 */ /*!****************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/dir/index.js ***! \****************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./file */ 18); /***/ }, /* 18 */ /*!*******************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/dir/new-file.js ***! \*******************************************************************/ /***/ function(module, exports, __webpack_require__) { module.exports = "new-file"; /***/ } /******/ ])