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.
13 lines • 2.98 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/renaming/index.js ***!
\***********************************/
function(t,e,r){var n,n,n,o,o,n,n,n,n,n,i,o,n,n,n;(function(t){it("should be able to rename require by var",function(){r(/*! ./file */1).should.be.eql("ok"),r(/*! ./file */1).should.be.eql("ok")}),it("should be able to rename require by assign",function(){var t,e;!function(){t=n,e="function"==typeof n&&n,r(/*! ./file */1).should.be.eql("ok"),r(/*! ./file */1).should.be.eql("ok")}()}),it("should be able to rename require by IIFE",function(){!function(){r(/*! ./file */1).should.be.eql("ok")}(n)}),it("should be able to rename require by IIFE call",function(){(function(t){r(/*! ./file */1).should.be.eql("ok"),t.should.be.eql(123)}).call(this,123,"function"==typeof n?n:"error")}),it("should be able to rename stuff by IIFE call",function(){(function(n,s,a,u){o=function(o,i,c){r(/*! ./file */1).should.be.eql("ok"),r(/*! ./file */1).should.be.eql("ok"),r(/*! ./file */1).should.be.eql("ok"),i.should.be.eql(e),n.should.be.eql(e),s.should.be.eql(e),c.should.be.eql(t),a.should.be.eql(t),u.should.be.eql(t)}.call(e,r,e,t),!(void 0!==o&&(t.exports=o)),i=[r(/*! ./file */1)],o=function(t){t.should.be.eql("ok")}.apply(e,i),!(void 0!==o&&(t.exports=o))}).call(this,"undefined"!=typeof e?e:null,e,"undefined"!=typeof t?t:null,t,r(/*! !webpack amd define */2),r(/*! !webpack amd define */2),"undefined"!=typeof n?n:null,n)}),it("should accept less parameters in a IIFE call",function(){!function(t,e){r(/*! ./file */1).should.be.eql("ok"),(typeof e).should.be.eql("undefined")}(n)}),it("should accept more parameters in a IIFE call",function(){!function(){}(n)}),it("should be able to rename stuff by IIFE call",function(){(function(n,i){o=function(o,s,a){r(/*! ./file */1).should.be.eql("ok"),r(/*! ./file */1).should.be.eql("ok"),s.should.be.eql(e),n.should.be.eql(e),a.should.be.eql(t),i.should.be.eql(t)}.call(e,r,e,t),!(void 0!==o&&(t.exports=o))}).call(this,"undefined"!=typeof e?e:null,"undefined"!=typeof t?t:null,r(/*! !webpack amd define */2),"undefined"!=typeof n?n:null)})}).call(e,r(/*! (webpack)/buildin/module.js */3)(t))},/*!**********************************!*\
!*** ./parsing/renaming/file.js ***!
\**********************************/
function(t){t.exports="ok"},/*!***************************************!*\
!*** (webpack)/buildin/amd-define.js ***!
\***************************************/
function(t){t.exports=function(){throw new Error("define cannot be used indirect")}},/*!***********************************!*\
!*** (webpack)/buildin/module.js ***!
\***********************************/
function(t){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}}]);