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.
19 lines • 4.85 kB
JavaScript
!function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([/*!**********************************!*\
!*** ./parsing/harmony/index.js ***!
\**********************************/
function(e,t,r){it("should import an identifier from a module",function(){var e=r(/*! abc */1),t=e.a,o=e.b;t.should.be.eql("a"),o.should.be.eql("b")}),it("should exports should be enumberable",function(){var e=r(/*! abc */1),t=[];for(var o in e)t.push(o);t.should.be.eql(["a","b","c"])}),it("should import a module with module statement",function(){var e=r(/*! importWithModule */3),t=e.value;Object.keys(t).should.be.eql(["a","b","c"])}),it("should import a module"),it("should export functions",function(){var e=r(/*! exportKinds */2),t=e.fn;t.should.have.type("function"),t().should.be.eql("fn")}),it("should multiple variables with one statement",function(){var e=r(/*! exportKinds */2),t=e.one,o=e.two;t.should.be.eql("one"),o.should.be.eql("two")}),it("should still be able to use exported stuff",function(){var e=r(/*! exportKinds */2),t=e.test1,o=e.test2;t.should.be.eql("fn"),o.should.be.eql("two")}),it("should reexport a module",function(){var e=r(/*! reexport */5),t=e.a,o=e.b,n=e.c,s=e.o,i=e.two,a=e.test1;t.should.be.eql("a"),o.should.be.eql("b"),n.should.be.eql("c"),s.should.be.eql("one"),i.should.be.eql("two"),(typeof a).should.be.eql("undefined")}),it("should support inline modules",function(){var e=r(/*! inlineModule */4),t=e.a,o=e.getValue,n=e.setValue,s=e.g,i=e.s,a=e.gg;t.should.be.eql("a"),o().should.be.eql(123),s().should.be.eql(123),a().should.be.eql(123),n(456),o().should.be.eql(456),s().should.be.eql(456),a().should.be.eql(123),i(135),o().should.be.eql(135),s().should.be.eql(135),a().should.be.eql(123)})},/*!**********************************!*\
!*** ./parsing/harmony/~/abc.js ***!
\**********************************/
function(e,t){var r="a";Object.defineProperty(t,"a",{configurable:!1,enumerable:!0,get:function(){return r}});var o="b";Object.defineProperty(t,"b",{configurable:!1,enumerable:!0,get:function(){return o}});var n="c";Object.defineProperty(t,"c",{configurable:!1,enumerable:!0,get:function(){return n}})},/*!******************************************!*\
!*** ./parsing/harmony/~/exportKinds.js ***!
\******************************************/
function(e,t){function r(){return"fn"}Object.defineProperty(t,"fn",{configurable:!1,enumerable:!0,get:function(){return r}});var o="one",n="two";Object.defineProperty(t,"one",{configurable:!1,enumerable:!0,get:function(){return o}}),Object.defineProperty(t,"two",{configurable:!1,enumerable:!0,get:function(){return n}});var s=r();Object.defineProperty(t,"test1",{configurable:!1,enumerable:!0,get:function(){return s}});var i=n;Object.defineProperty(t,"test2",{configurable:!1,enumerable:!0,get:function(){return i}})},/*!***********************************************!*\
!*** ./parsing/harmony/~/importWithModule.js ***!
\***********************************************/
function(e,t,r){var o=r(/*! abc */1),n=o;Object.defineProperty(t,"value",{configurable:!1,enumerable:!0,get:function(){return n}})},/*!*******************************************!*\
!*** ./parsing/harmony/~/inlineModule.js ***!
\*******************************************/
function(e,t){function r(){return i()}function o(e){a(e)}function n(){return u}var s={};!function(e){function t(){return o}function r(e){o=e}var o=123,n="a";Object.defineProperty(e,"a",{configurable:!1,enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"getValue",{configurable:!1,enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"setValue",{configurable:!1,enumerable:!0,get:function(){return r}}),Object.defineProperty(e,"value",{configurable:!1,enumerable:!0,get:function(){return o}})}.call(this,s);var i=s.getValue,a=s.setValue,u=s.value;Object.defineProperty(t,"g",{configurable:!1,enumerable:!0,get:function(){return r}}),Object.defineProperty(t,"s",{configurable:!1,enumerable:!0,get:function(){return o}}),Object.defineProperty(t,"gg",{configurable:!1,enumerable:!0,get:function(){return n}});for(var c in s)Object.defineProperty(t,c,{configurable:!1,enumerable:!0,get:function(e){return function(){return s[e]}}(c)})},/*!***************************************!*\
!*** ./parsing/harmony/~/reexport.js ***!
\***************************************/
function(e,t,r){var o=r(/*! abc */1);for(var n in o)Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:function(e){return function(){return o[e]}}(n)});var s=r(/*! exportKinds */2);Object.defineProperty(t,"o",{configurable:!1,enumerable:!0,get:function(){return s.one}}),Object.defineProperty(t,"two",{configurable:!1,enumerable:!0,get:function(){return s.two}})}]);