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.

58 lines 5.91 kB
!function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([/*!******************************************!*\ !*** ./resolving/browser-field/index.js ***! \******************************************/ function(e,t,r){it("should replace a module with a module",function(){r(/*! replacing-module1 */1).should.be.eql("new-module")}),it("should replace a module with a file in a module",function(){r(/*! replacing-module2 */2).should.be.eql("new-module/inner")}),it("should replace a module with file in the same module",function(){r(/*! replacing-module3 */3).should.be.eql("new-module/inner")}),it("should replace a module with a file in the current module",function(){r(/*! replacing-module4 */4).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 */8).should.be.eql("new-module")}),it("should replace a file with a file in a module",function(){r(/*! replacing-file3 */7).should.be.eql("new-module/inner")}),it("should replace a file in a directory with another file",function(){r(/*! replacing-file4 */6).should.be.eql("new-file")}),it("should ignore recursive module mappings",function(){r(/*! recursive-module */9).should.be.eql("new-module")}),it("should use empty modules for ignored modules",function(){r(/*! ignoring-module */10).module.should.be.eql({}),r(/*! ignoring-module */10).file.should.be.eql({}),r(/*! ignoring-module */10).module.should.not.be.equal(r(/*! ignoring-module */10).file)})},/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module1/index.js ***! \**************************************************************/ function(e,t,r){e.exports=r(/*! wrong-module */13)},/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module2/index.js ***! \**************************************************************/ function(e,t,r){e.exports=r(/*! wrong-module */14)},/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module3/index.js ***! \**************************************************************/ function(e,t,r){e.exports=r(/*! new-module */14)},/*!**************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module4/index.js ***! \**************************************************************/ function(e,t,r){e.exports=r(/*! wrong-module */12)},/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file1/index.js ***! \************************************************************/ function(e,t,r){e.exports=r(/*! ./file */16)},/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/index.js ***! \************************************************************/ function(e,t,r){e.exports=r(/*! ./dir */17)},/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file3/index.js ***! \************************************************************/ function(e,t,r){e.exports=r(/*! ./file */14)},/*!************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file2/index.js ***! \************************************************************/ function(e,t,r){e.exports=r(/*! ./file */13)},/*!*************************************************************!*\ !*** ./resolving/browser-field/~/recursive-module/index.js ***! \*************************************************************/ function(e,t,r){e.exports=r(/*! new-module */13)},/*!************************************************************!*\ !*** ./resolving/browser-field/~/ignoring-module/index.js ***! \************************************************************/ function(e,t,r){t.module=r(/*! wrong-module */11),t.file=r(/*! ./file */15)},/*!******************************!*\ !*** wrong-module (ignored) ***! \******************************/ function(){},/*!***************************************************************!*\ !*** ./resolving/browser-field/~/replacing-module4/module.js ***! \***************************************************************/ function(e){e.exports="replacing-module4/module"},/*!*******************************************************!*\ !*** ./resolving/browser-field/~/new-module/index.js ***! \*******************************************************/ function(e){e.exports="new-module"},/*!*******************************************************!*\ !*** ./resolving/browser-field/~/new-module/inner.js ***! \*******************************************************/ function(e){e.exports="new-module/inner"},/*!************************!*\ !*** ./file (ignored) ***! \************************/ function(){},/*!***************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file1/new-file.js ***! \***************************************************************/ function(e){e.exports="new-file"},/*!****************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/dir/index.js ***! \****************************************************************/ function(e,t,r){e.exports=r(/*! ./file */18)},/*!*******************************************************************!*\ !*** ./resolving/browser-field/~/replacing-file4/dir/new-file.js ***! \*******************************************************************/ function(e){e.exports="new-file"}]);