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.
16 lines • 2.62 kB
JavaScript
!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/context/index.js ***!
\************************************/
function(e,t,r){it("should resolve loaders relative to require",function(){var e="index",t="test";r(/*! ./loaders/queryloader?query!!!!./~/subcontent */1)("./"+e+".js").should.be.eql({resourceQuery:null,query:"?query",prev:'module.exports = "error";'}),r(/*! ./loaders/queryloader?query!./~/subcontent */2)("./"+t+".jade").should.be.eql({resourceQuery:null,query:"?query",prev:"xyz: abc"})})},/*!******************************************************************************************************!*\
!*** ./resolving/context/~/subcontent ./resolving/context/loaders/queryloader.js?query!^\.\/.*\.js$ ***!
\******************************************************************************************************/
function(e,t,r){function n(e){return r(o(e))}function o(e){return i[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var i={"./index.js":3};n.keys=function(){return Object.keys(i)},n.resolve=o,e.exports=n,n.id=1},/*!********************************************************************************************************!*\
!*** ./resolving/context/~/subcontent ./resolving/context/loaders/queryloader.js?query!^\.\/.*\.jade$ ***!
\********************************************************************************************************/
function(e,t,r){function n(e){return r(o(e))}function o(e){return i[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var i={"./test.jade":4};n.keys=function(){return Object.keys(i)},n.resolve=o,e.exports=n,n.id=2},/*!**************************************************************************************************!*\
!*** ./resolving/context/loaders/queryloader.js?query!./resolving/context/~/subcontent/index.js ***!
\**************************************************************************************************/
function(e){e.exports={resourceQuery:null,query:"?query",prev:'module.exports = "error";'}},/*!***************************************************************************************************!*\
!*** ./resolving/context/loaders/queryloader.js?query!./resolving/context/~/subcontent/test.jade ***!
\***************************************************************************************************/
function(e){e.exports={resourceQuery:null,query:"?query",prev:"xyz: abc"}}]);