Files
codeql/javascript/ql/test/library-tests/Bundling/bundled.webpack.js
2018-08-02 17:53:23 +01:00

100 lines
2.4 KiB
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 */
/***/ function(module, exports, __webpack_require__) {
var b = __webpack_require__(1),
c = __webpack_require__(2);
b.sayHello();
/***/ },
/* 1 */
/***/ function(module, exports) {
exports.sayHello = function() {
console.log("Hello, world!");
}
/***/ },
/* 2 */
/***/ function(module, exports, __webpack_require__) {
var __webpack_require__ = false;
var imp = 'b';
__webpack_require__(3)("." + imp);
/***/ },
/* 3 */
/***/ function(module, exports, __webpack_require__) {
var map = {
"./b": 1,
"./b.js": 1,
"./c": 2,
"./c.js": 2,
"./d": 4,
"./d.js": 4
};
function webpackContext(req) {
return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
return map[req] || (function() { throw new Error("Cannot find module '" + req + "'.") }());
};
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = 3;
/***/ },
/* 4 */
/***/ function(module, exports) {
// nothing
/***/ }
/******/ ]);