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.
99 lines (87 loc) • 10.9 kB
JavaScript
/******/ (function(modules) { // webpackBootstrap
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/*!**********************************!*\
!*** ./parsing/harmony/index.js ***!
\**********************************/
/***/ function(module, exports, __webpack_require__) {
eval("it(\"should import an identifier from a module\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_63_93__ = __webpack_require__(/*! abc */ 1), a = __WEBPACK_IMPORTED_MODULE_63_93__[\"a\"], B = __WEBPACK_IMPORTED_MODULE_63_93__[\"b\"];\r\n\ta.should.be.eql(\"a\");\r\n\tB.should.be.eql(\"b\");\r\n});\r\n\r\nit(\"should exports should be enumberable\", function() {\r\n\tvar abc = __webpack_require__(/*! abc */ 1);\r\n\tvar array = [];\r\n\tfor(var x in abc) {\r\n\t\tarray.push(x);\r\n\t}\r\n\tarray.should.be.eql([\"a\", \"b\", \"c\"]);\r\n});\r\n\r\nit(\"should import a module with module statement\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_407_448__ = __webpack_require__(/*! importWithModule */ 2), value = __WEBPACK_IMPORTED_MODULE_407_448__[\"value\"];\r\n\tObject.keys(value).should.be.eql([\"a\", \"b\", \"c\"]);\r\n});\r\n\r\nit(\"should import a module\"/*, function() {\r\n\timport def from \"def\";\r\n\tdef.should.be.eql(\"def\");\r\n}*/);\r\n\r\nit(\"should export functions\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_662_695__ = __webpack_require__(/*! exportKinds */ 3), fn = __WEBPACK_IMPORTED_MODULE_662_695__[\"fn\"];\r\n\tfn.should.have.type(\"function\");\r\n\tfn().should.be.eql(\"fn\");\r\n});\r\n\r\nit(\"should multiple variables with one statement\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_833_872__ = __webpack_require__(/*! exportKinds */ 3), one = __WEBPACK_IMPORTED_MODULE_833_872__[\"one\"], two = __WEBPACK_IMPORTED_MODULE_833_872__[\"two\"];\r\n\tone.should.be.eql(\"one\");\r\n\ttwo.should.be.eql(\"two\");\r\n});\r\n\r\nit(\"should still be able to use exported stuff\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_1001_1044__ = __webpack_require__(/*! exportKinds */ 3), test1 = __WEBPACK_IMPORTED_MODULE_1001_1044__[\"test1\"], test2 = __WEBPACK_IMPORTED_MODULE_1001_1044__[\"test2\"];\r\n\ttest1.should.be.eql(\"fn\");\r\n\ttest2.should.be.eql(\"two\");\r\n});\r\n\r\nit(\"should reexport a module\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_1158_1208__ = __webpack_require__(/*! reexport */ 4), a = __WEBPACK_IMPORTED_MODULE_1158_1208__[\"a\"], b = __WEBPACK_IMPORTED_MODULE_1158_1208__[\"b\"], c = __WEBPACK_IMPORTED_MODULE_1158_1208__[\"c\"], o = __WEBPACK_IMPORTED_MODULE_1158_1208__[\"o\"], two = __WEBPACK_IMPORTED_MODULE_1158_1208__[\"two\"], test1 = __WEBPACK_IMPORTED_MODULE_1158_1208__[\"test1\"];\r\n\ta.should.be.eql(\"a\");\r\n\tb.should.be.eql(\"b\");\r\n\tc.should.be.eql(\"c\");\r\n\to.should.be.eql(\"one\");\r\n\ttwo.should.be.eql(\"two\");\r\n\t(typeof test1).should.be.eql(\"undefined\");\r\n});\r\n\r\nit(\"should support inline modules\", function() {\r\n\tvar __WEBPACK_IMPORTED_MODULE_1439_1502__ = __webpack_require__(/*! inlineModule */ 5), a = __WEBPACK_IMPORTED_MODULE_1439_1502__[\"a\"], getValue = __WEBPACK_IMPORTED_MODULE_1439_1502__[\"getValue\"], setValue = __WEBPACK_IMPORTED_MODULE_1439_1502__[\"setValue\"], g = __WEBPACK_IMPORTED_MODULE_1439_1502__[\"g\"], s = __WEBPACK_IMPORTED_MODULE_1439_1502__[\"s\"], gg = __WEBPACK_IMPORTED_MODULE_1439_1502__[\"gg\"];\r\n\ta.should.be.eql(\"a\");\r\n\tgetValue().should.be.eql(123);\r\n\tg().should.be.eql(123);\r\n\tgg().should.be.eql(123);\r\n\tsetValue(456)\r\n\tgetValue().should.be.eql(456);\r\n\tg().should.be.eql(456);\r\n\tgg().should.be.eql(123);\r\n\ts(135)\r\n\tgetValue().should.be.eql(135);\r\n\tg().should.be.eql(135);\r\n\tgg().should.be.eql(123);\r\n});\r\n\n\n// WEBPACK FOOTER\n// module.id = 0\n// module.readableIdentifier = ./parsing/harmony/index.js\n//@ sourceURL=webpack-module:///./parsing/harmony/index.js");
/***/ },
/* 1 */
/*!**********************************!*\
!*** ./parsing/harmony/~/abc.js ***!
\**********************************/
/***/ function(module, exports, __webpack_require__) {
eval("{var a = \"a\";;Object.defineProperty(exports, \"a\", {configurable: false, enumerable: true, get: function() { return a; }});}\r\n{var b = \"b\";;Object.defineProperty(exports, \"b\", {configurable: false, enumerable: true, get: function() { return b; }});}\r\n{var c = \"c\";;Object.defineProperty(exports, \"c\", {configurable: false, enumerable: true, get: function() { return c; }});}\n\n// WEBPACK FOOTER\n// module.id = 1\n// module.readableIdentifier = ./parsing/harmony/~/abc.js\n//@ sourceURL=webpack-module:///./parsing/harmony/~/abc.js");
/***/ },
/* 2 */
/*!***********************************************!*\
!*** ./parsing/harmony/~/importWithModule.js ***!
\***********************************************/
/***/ function(module, exports, __webpack_require__) {
eval("var abc = __webpack_require__(/*! abc */ 1);\r\n\r\n{var value = abc;;Object.defineProperty(exports, \"value\", {configurable: false, enumerable: true, get: function() { return value; }});}\n\n// WEBPACK FOOTER\n// module.id = 2\n// module.readableIdentifier = ./parsing/harmony/~/importWithModule.js\n//@ sourceURL=webpack-module:///./parsing/harmony/~/importWithModule.js");
/***/ },
/* 3 */
/*!******************************************!*\
!*** ./parsing/harmony/~/exportKinds.js ***!
\******************************************/
/***/ function(module, exports, __webpack_require__) {
eval("{function fn() {\r\n\treturn \"fn\";\r\n};Object.defineProperty(exports, \"fn\", {configurable: false, enumerable: true, get: function() { return fn; }});}\r\n{var one = \"one\", two = \"two\";;Object.defineProperty(exports, \"one\", {configurable: false, enumerable: true, get: function() { return one; }});Object.defineProperty(exports, \"two\", {configurable: false, enumerable: true, get: function() { return two; }});}\r\n\r\n{var test1 = fn();;Object.defineProperty(exports, \"test1\", {configurable: false, enumerable: true, get: function() { return test1; }});}\r\n{var test2 = two;;Object.defineProperty(exports, \"test2\", {configurable: false, enumerable: true, get: function() { return test2; }});}\r\n\n\n// WEBPACK FOOTER\n// module.id = 3\n// module.readableIdentifier = ./parsing/harmony/~/exportKinds.js\n//@ sourceURL=webpack-module:///./parsing/harmony/~/exportKinds.js");
/***/ },
/* 4 */
/*!***************************************!*\
!*** ./parsing/harmony/~/reexport.js ***!
\***************************************/
/***/ function(module, exports, __webpack_require__) {
eval("{var __WEBPACK_IMPORTED_MODULE_0_20__ = __webpack_require__(/*! abc */ 1);for(var __WEBPACK_IMPORT_NAME__ in __WEBPACK_IMPORTED_MODULE_0_20__) Object.defineProperty(exports, __WEBPACK_IMPORT_NAME__, { configurable: false, enumerable: true, get: (function(key) { return function() { return __WEBPACK_IMPORTED_MODULE_0_20__[key]; }; }(__WEBPACK_IMPORT_NAME__)) });;}\r\n{var __WEBPACK_IMPORTED_MODULE_22_66__ = __webpack_require__(/*! exportKinds */ 3);Object.defineProperty(exports, \"o\", { configurable: false, enumerable: true, get: function() { return __WEBPACK_IMPORTED_MODULE_22_66__[\"one\"]; } });Object.defineProperty(exports, \"two\", { configurable: false, enumerable: true, get: function() { return __WEBPACK_IMPORTED_MODULE_22_66__[\"two\"]; } });;}\n\n// WEBPACK FOOTER\n// module.id = 4\n// module.readableIdentifier = ./parsing/harmony/~/reexport.js\n//@ sourceURL=webpack-module:///./parsing/harmony/~/reexport.js");
/***/ },
/* 5 */
/*!*******************************************!*\
!*** ./parsing/harmony/~/inlineModule.js ***!
\*******************************************/
/***/ function(module, exports, __webpack_require__) {
eval("{ /* harmony module */ var __WEBPACK_LOCAL_MODULE_0__ = {}; !(function(exports) {{\r\n\tvar value = 123;\r\n\t{var a = \"a\";;Object.defineProperty(exports, \"a\", {configurable: false, enumerable: true, get: function() { return a; }});}\r\n\t{function getValue() {\r\n\t\treturn value;\r\n\t};Object.defineProperty(exports, \"getValue\", {configurable: false, enumerable: true, get: function() { return getValue; }});}\r\n\t{function setValue(v) {\r\n\t\tvalue = v;\r\n\t};Object.defineProperty(exports, \"setValue\", {configurable: false, enumerable: true, get: function() { return setValue; }});}\r\n\t{Object.defineProperty(exports, \"value\", {configurable: false, enumerable: true, get: function() { return value; }});}\n}}.call(this, __WEBPACK_LOCAL_MODULE_0__))}var gv = __WEBPACK_LOCAL_MODULE_0__[\"getValue\"], sv = __WEBPACK_LOCAL_MODULE_0__[\"setValue\"], v = __WEBPACK_LOCAL_MODULE_0__[\"value\"];\r\n\r\n{function g() {\r\n\treturn gv();\r\n};Object.defineProperty(exports, \"g\", {configurable: false, enumerable: true, get: function() { return g; }});}\r\n\r\n{function s(v) {\r\n\tsv(v);\r\n};Object.defineProperty(exports, \"s\", {configurable: false, enumerable: true, get: function() { return s; }});}\r\n\r\n{function gg() {\r\n\treturn v;\r\n};Object.defineProperty(exports, \"gg\", {configurable: false, enumerable: true, get: function() { return gg; }});}\r\n\r\nfor(var __WEBPACK_IMPORT_NAME__ in __WEBPACK_LOCAL_MODULE_0__) Object.defineProperty(exports, __WEBPACK_IMPORT_NAME__, { configurable: false, enumerable: true, get: (function(key) { return function() { return __WEBPACK_LOCAL_MODULE_0__[key]; }; }(__WEBPACK_IMPORT_NAME__)) });\n\n// WEBPACK FOOTER\n// module.id = 5\n// module.readableIdentifier = ./parsing/harmony/~/inlineModule.js\n//@ sourceURL=webpack-module:///./parsing/harmony/~/inlineModule.js");
/***/ }
/******/ ])