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.41 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={};return e.m=t,e.c=r,e.p="",e(0)}([/*!*************************************!*\
!*** ./parsing/browserify/index.js ***!
\*************************************/
function(t){var e,e,e,e;it("should be able to parse browserified modules",function(t){!function r(t,n,o){function i(a,u){if(!n[a]){if(!t[a]){var c="function"==typeof e&&e;if(!u&&c)return e(a,!0);if(s)return s(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var r=t[a][1][e];return i(r?r:e)},l,l.exports,r,t,n,o)}return n[a].exports}for(var s="function"==typeof e&&e,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(){t()},{}]},{},[1])}),it("should be able to parse browserified modules (UMD)",function(){!function(e){t.exports=e()}(function(){return function t(r,n,o){function i(a,u){if(!n[a]){if(!r[a]){var c="function"==typeof e&&e;if(!u&&c)return e(a,!0);if(s)return s(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=n[a]={exports:{}};r[a][0].call(l.exports,function(t){var e=r[a][1][t];return i(e?e:t)},l,l.exports,t,r,n,o)}return n[a].exports}for(var s="function"==typeof e&&e,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e){e.exports=1234},{}]},{},[1])(1)}),t.exports.should.be.eql(1234)})}]);