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.
4 lines • 1.36 kB
JavaScript
!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={},n={0:1};return e.e=function(r,o){if(1===n[r])o.call(null,e);else if(n[r])n[r].push(o);else{n[r]=[o];var i=__dirname+"/"+r+".bundle.js";require("fs").readFile(i,"utf-8",function(r,o){if(r){if(e.onError)return e.onError(r);throw r}var s={};require("vm").runInThisContext("(function(exports, require, __dirname, __filename) {"+o+"\n})",i)(s,require,require("path").dirname(i),i);var a=s.modules,u=s.ids;for(var c in a)t[c]=a[c];for(var f=[],l=0;l<u.length;l++)Array.isArray(n[u[l]])&&(f=f.concat(n[u[l]])),n[u[l]]=1;for(l=0;l<f.length;l++)f[l].call(null,e)})}},e.m=t,e.c=r,e.p="",e(0)}([/*!*********************************!*\
!*** ./chunks/runtime/index.js ***!
\*********************************/
function(t,e,r){it("should handle duplicate chunks",function(t){var e=!1,n=!1;r.e(1,function(){r(/*! ./acircular */1),r(/*! ./duplicate */2),r(/*! ./duplicate2 */3),e=!0,n&&t()}),r.e(6,function(){r(/*! ./acircular2 */4),r(/*! ./duplicate */2),r(/*! ./duplicate2 */3),n=!0,e&&t()})}),it("should not load a chunk which is included in a already loaded one",function(t){function e(){var e=!0;r.e(8,function(){e.should.be.eql(!0),t()}),e=!1}var n=!1;r.e(7,function(){n.should.be.eql(!0),e()}),n=!0})}]);