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.

67 lines 6.16 kB
!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}(function(t){for(var e in t)switch(typeof t[e]){case"number":t[e]=t[t[e]];break;case"object":t[e]=function(e){var r=e.slice(1),n=t[e[0]];return function(t,e,o){n.apply(null,[t,e,o].concat(r))}}(t[e])}return t}([/*!******************************************!*\ !*** ./resolving/browser-field/index.js ***! \******************************************/ function(t,e,r){it("should replace a module with a module",function(){r(/*! replacing-module1 */12).should.be.eql("new-module")}),it("should replace a module with a file in a module",function(){r(/*! replacing-module2 */13).should.be.eql("new-module/inner")}),it("should replace a module with file in the same module",function(){r(/*! replacing-module3 */14).should.be.eql("new-module/inner")}),it("should replace a module with a file in the current module",function(){r(/*! replacing-module4 */15).should.be.eql("replacing-module4/module")}),it("should replace a file with another file",function(){r(/*! replacing-file1 */5).should.be.eql("new-file")}),it("should replace a file with a module",function(){r(/*! replacing-file2 */7).should.be.eql("new-module")}),it("should replace a file with a file in a module",function(){r(/*! replacing-file3 */8).should.be.eql("new-module/inner")}),it("should replace a file in a directory with another file",function(){r(/*! replacing-file4 */11).should.be.eql("new-file")}),it("should ignore recursive module mappings",function(){r(/*! recursive-module */4).should.be.eql("new-module")}),it("should use empty modules for ignored modules",function(){r(/*! ignoring-module */1).module.should.be.eql({}),r(/*! ignoring-module */1).file.should.be.eql({}),r(/*! ignoring-module */1).module.should.not.be.equal(r(/*! ignoring-module */1).file)})},/*!************************************************************!*\ !*** ./resolving/browser-field/~/ignoring-module/index.js ***! \************************************************************/ function(t,e,r){e.module=r(/*! wrong-module */18),e.file=r(/*! ./file */17)},/*!*******************************************************!*\ !*** ./resolving/browser-field/~/new-module/index.js ***! \*******************************************************/ function(t){t.exports="new-module"},/*!*******************************************************!*\ !*** ./resolving/browser-field/~/new-module/inner.js ***! \*******************************************************/ function(t){t.exports="new-module/inner"},/*!*************************************************************!*\ !*** ./resolving/browser-field/~/recursive-module/index.js ***! \*************************************************************/ [21,2],/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file1/index.js ***! \************************************************************/ [19,6],/*!***************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file1/new-file.js ***! \***************************************************************/ function(t){t.exports="new-file"},/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file2/index.js ***! \************************************************************/ [19,2],/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file3/index.js ***! \************************************************************/ [19,3],/*!****************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/dir/index.js ***! \****************************************************************/ [19,10],/*!*******************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/dir/new-file.js ***! \*******************************************************************/ 6,/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/index.js ***! \************************************************************/ function(t,e,r){t.exports=r(/*! ./dir */9)},/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module1/index.js ***! \**************************************************************/ [20,2],/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module2/index.js ***! \**************************************************************/ [20,3],/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module3/index.js ***! \**************************************************************/ [21,3],/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module4/index.js ***! \**************************************************************/ [20,16],/*!***************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module4/module.js ***! \***************************************************************/ function(t){t.exports="replacing-module4/module"},/*!************************!*\ !*** ./file (ignored) ***! \************************/ function(){},/*!******************************!*\ !*** wrong-module (ignored) ***! \******************************/ 17,/*!**********************************!*\ !*** template of 5 referencing ***! \**********************************/ function(t,e,r,n){t.exports=r(n)},/*!***********************************!*\ !*** template of 12 referencing ***! \***********************************/ function(t,e,r,n){t.exports=r(n)},/*!***********************************!*\ !*** template of 14 referencing ***! \***********************************/ function(t,e,r,n){t.exports=r(n)}]));