Last active
April 2, 2024 08:12
-
-
Save fi3ework/108bc3fefa003464315a3773740c0a09 to your computer and use it in GitHub Desktop.
webpack ESM library output diff
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
/******/ var __webpack_modules__ = ([ | |
/* 0 */, | |
/* 1 */ | |
/***/ ((module) => { | |
module.exports = "cjs"; | |
/***/ }) | |
/******/ ]); | |
/************************************************************************/ | |
/******/ // 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 }); | |
/******/ }; | |
/******/ })(); | |
/******/ | |
/************************************************************************/ | |
var __webpack_exports__ = {}; | |
// NAMESPACE OBJECT: ./barrel-constants.js | |
var barrel_constants_namespaceObject = {}; | |
__webpack_require__.r(barrel_constants_namespaceObject); | |
__webpack_require__.d(barrel_constants_namespaceObject, { | |
x: () => (x), | |
y: () => (y), | |
z: () => (z) | |
}); | |
;// CONCATENATED MODULE: ./constants.js | |
const cjsVar = __webpack_require__(1); | |
const num = 0; | |
/* harmony default export */ const constants = (num); | |
const num1 = 1; | |
const num2 = 2; | |
const add1 = ()=>num + num1; | |
const unused2 = "unused2"; | |
;// CONCATENATED MODULE: ./lib.js | |
function lib_add1() { | |
return constants + num1; | |
} | |
function add2() { | |
return constants + num2; | |
} | |
function unused_add() { | |
return "unused"; | |
} | |
;// CONCATENATED MODULE: ./barrel-constants.js | |
const x = 1; | |
const y = 1; | |
const z = 1; | |
;// CONCATENATED MODULE: ./index.js | |
/* harmony default export */ const index = (constants); | |
function add3() { | |
return lib_add1() + add2(); | |
} | |
export { lib_add1 as add1, add2, add3, index as default, num1, unused_add, barrel_constants_namespaceObject as xyz }; | |
//# sourceMappingURL=webpack-dist-libraryEntry.mjs.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment