Created
April 13, 2016 20:44
-
-
Save TheLarkInn/3b0b130e9776c8961b1397da7e15aafc to your computer and use it in GitHub Desktop.
UMD Wrapped Webpack Lib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(); | |
else if(typeof define === 'function' && define.amd) | |
define([], factory); | |
else if(typeof exports === 'object') | |
exports["fun"] = factory(); | |
else | |
root["fun"] = factory(); | |
})(this, function() { | |
return /******/ (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 */ | |
/***/ function(module, exports, __webpack_require__) { | |
'use strict'; | |
var _componentA = __webpack_require__(2); | |
var _componentA2 = _interopRequireDefault(_componentA); | |
var _componentB = __webpack_require__(3); | |
var _componentB2 = _interopRequireDefault(_componentB); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
document.body.appendChild((0, _componentA2.default)()); | |
document.body.appendChild((0, _componentB2.default)()); | |
/***/ }, | |
/* 1 */, | |
/* 2 */ | |
/***/ function(module, exports) { | |
'use strict'; | |
module.exports = function () { | |
var element = document.createElement('h1'); | |
element.innerHTML = 'Hello world'; | |
return element; | |
}; | |
/***/ }, | |
/* 3 */ | |
/***/ function(module, exports) { | |
'use strict'; | |
module.exports = function () { | |
var element = document.createElement('h1'); | |
element.innerHTML = 'Hello world'; | |
return element; | |
}; | |
/***/ } | |
/******/ ]) | |
}); | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment