Advertisement
Guest User

webpack anonymous modules test - combined.js

a guest
May 14th, 2017
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2.     if(typeof exports === 'object' && typeof module === 'object')
  3.         module.exports = factory();
  4.     else if(typeof define === 'function' && define.amd)
  5.         define([], factory);
  6.     else {
  7.         var a = factory();
  8.         for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
  9.     }
  10. })(this, function() {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/    // The module cache
  13. /******/    var installedModules = {};
  14. /******/
  15. /******/    // The require function
  16. /******/    function __webpack_require__(moduleId) {
  17. /******/
  18. /******/        // Check if module is in cache
  19. /******/        if(installedModules[moduleId]) {
  20. /******/            return installedModules[moduleId].exports;
  21. /******/        }
  22. /******/        // Create a new module (and put it into the cache)
  23. /******/        var module = installedModules[moduleId] = {
  24. /******/            i: moduleId,
  25. /******/            l: false,
  26. /******/            exports: {}
  27. /******/        };
  28. /******/
  29. /******/        // Execute the module function
  30. /******/        modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/        // Flag the module as loaded
  33. /******/        module.l = true;
  34. /******/
  35. /******/        // Return the exports of the module
  36. /******/        return module.exports;
  37. /******/    }
  38. /******/
  39. /******/
  40. /******/    // expose the modules object (__webpack_modules__)
  41. /******/    __webpack_require__.m = modules;
  42. /******/
  43. /******/    // expose the module cache
  44. /******/    __webpack_require__.c = installedModules;
  45. /******/
  46. /******/    // identity function for calling harmony imports with the correct context
  47. /******/    __webpack_require__.i = function(value) { return value; };
  48. /******/
  49. /******/    // define getter function for harmony exports
  50. /******/    __webpack_require__.d = function(exports, name, getter) {
  51. /******/        if(!__webpack_require__.o(exports, name)) {
  52. /******/            Object.defineProperty(exports, name, {
  53. /******/                configurable: false,
  54. /******/                enumerable: true,
  55. /******/                get: getter
  56. /******/            });
  57. /******/        }
  58. /******/    };
  59. /******/
  60. /******/    // getDefaultExport function for compatibility with non-harmony modules
  61. /******/    __webpack_require__.n = function(module) {
  62. /******/        var getter = module && module.__esModule ?
  63. /******/            function getDefault() { return module['default']; } :
  64. /******/            function getModuleExports() { return module; };
  65. /******/        __webpack_require__.d(getter, 'a', getter);
  66. /******/        return getter;
  67. /******/    };
  68. /******/
  69. /******/    // Object.prototype.hasOwnProperty.call
  70. /******/    __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  71. /******/
  72. /******/    // __webpack_public_path__
  73. /******/    __webpack_require__.p = "";
  74. /******/
  75. /******/    // Load entry module and return exports
  76. /******/    return __webpack_require__(__webpack_require__.s = 2);
  77. /******/ })
  78. /************************************************************************/
  79. /******/ ([
  80. /* 0 */
  81. /***/ (function(module, exports, __webpack_require__) {
  82.  
  83. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;//module1.js - objectTest1
  84. (function (root, factory) {
  85.     'use strict';
  86.  
  87.     //Universal Module Definition
  88.     if (true) {
  89.         // AMD
  90.         !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  91.                 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  92.                 (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  93.                 __WEBPACK_AMD_DEFINE_FACTORY__),
  94.                 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  95.     } else if (typeof exports === 'object') {
  96.         // Node, CommonJS-like
  97.         module.exports = factory();
  98.     } else {
  99.         // Browser globals (root is window)
  100.         root.returnExports = factory();
  101.     }
  102. }(this, function () {
  103.     'use strict';
  104.  
  105.     return function objectTest1() {
  106.         var test = '1';
  107.         return test;
  108.     };
  109. }));
  110.  
  111. /***/ }),
  112. /* 1 */
  113. /***/ (function(module, exports, __webpack_require__) {
  114.  
  115. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;//module2.js - objectTest2
  116. (function (root, factory) {
  117.     'use strict';
  118.  
  119.     //Universal Module Definition
  120.     if (true) {
  121.         // AMD
  122.         !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  123.                 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  124.                 (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  125.                 __WEBPACK_AMD_DEFINE_FACTORY__),
  126.                 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  127.     } else if (typeof exports === 'object') {
  128.         // Node, CommonJS-like
  129.         module.exports = factory();
  130.     } else {
  131.         // Browser globals (root is window)
  132.         root.returnExports = factory();
  133.     }
  134. }(this, function () {
  135.     'use strict';
  136.  
  137.     return function objectTest2() {
  138.         var test = '2';
  139.         return test;
  140.     };
  141. }));
  142.  
  143. /***/ }),
  144. /* 2 */
  145. /***/ (function(module, exports, __webpack_require__) {
  146.  
  147. __webpack_require__(0);
  148. module.exports = __webpack_require__(1);
  149.  
  150.  
  151. /***/ })
  152. /******/ ]);
  153. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement