Created
May 6, 2021 20:49
-
-
Save johnloy/c7faabf72b358f8bc96ef9699031643e to your computer and use it in GitHub Desktop.
Webpack runtime example
This file contains 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
/* | |
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). | |
* This devtool is neither made for production nor for readable output files. | |
* It uses "eval()" calls to create a separate source file in the browser devtools. | |
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) | |
* or disable the default devtool with "devtool: false". | |
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). | |
*/ | |
/******/ (() => { // webpackBootstrap | |
/******/ "use strict"; | |
/******/ var __webpack_modules__ = ({ | |
/***/ "./src/i-am-imported.js": | |
/*!******************************!*\ | |
!*** ./src/i-am-imported.js ***! | |
\******************************/ | |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"message\": () => (/* binding */ message)\n/* harmony export */ });\nvar message = 'I am imported';\n\n//# sourceURL=webpack://empty-project/./src/i-am-imported.js?"); | |
/***/ }), | |
/***/ "./src/index.js": | |
/*!**********************!*\ | |
!*** ./src/index.js ***! | |
\**********************/ | |
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _i_am_imported__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./i-am-imported */ \"./src/i-am-imported.js\");\n\nconsole.log('message');\n\n//# sourceURL=webpack://empty-project/./src/index.js?"); | |
/***/ }) | |
/******/ }); | |
/************************************************************************/ | |
/******/ // The module cache | |
/******/ var __webpack_module_cache__ = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ // Check if module is in cache | |
/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
/******/ if (cachedModule !== undefined) { | |
/******/ return cachedModule.exports; | |
/******/ } | |
/******/ // Create a new module (and put it into the cache) | |
/******/ var module = __webpack_module_cache__[moduleId] = { | |
/******/ // no module.id needed | |
/******/ // no module.loaded needed | |
/******/ exports: {} | |
/******/ }; | |
/******/ | |
/******/ // Execute the module function | |
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
/******/ | |
/******/ // Return the exports of the module | |
/******/ return module.exports; | |
/******/ } | |
/******/ | |
/************************************************************************/ | |
/******/ /* webpack/runtime/define property getters */ | |
/******/ (() => { | |
/******/ // define getter functions for harmony exports | |
/******/ __webpack_require__.d = (exports, definition) => { | |
/******/ for(var key in definition) { | |
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
/******/ } | |
/******/ } | |
/******/ }; | |
/******/ })(); | |
/******/ | |
/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
/******/ (() => { | |
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
/******/ })(); | |
/******/ | |
/******/ /* webpack/runtime/make namespace object */ | |
/******/ (() => { | |
/******/ // define __esModule on exports | |
/******/ __webpack_require__.r = (exports) => { | |
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
/******/ } | |
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
/******/ }; | |
/******/ })(); | |
/******/ | |
/************************************************************************/ | |
/******/ | |
/******/ // startup | |
/******/ // Load entry module and return exports | |
/******/ // This entry module can't be inlined because the eval devtool is used. | |
/******/ var __webpack_exports__ = __webpack_require__("./src/index.js"); | |
/******/ | |
/******/ })() | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment