From 37a806ffad5d8d6c202467547bf233fe78ba2ce1 Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Wed, 10 Aug 2022 11:18:32 -0700 Subject: [PATCH] test(ncc): update fixtures --- test/unit/bundle-subasset/output-coverage.js | 4 +- test/unit/bundle-subasset2/output-coverage.js | 4 +- test/unit/custom-emit/output-coverage.js | 4 +- .../double-nested-builds/output-coverage.js | 4 +- test/unit/exports-nomodule/output-coverage.js | 1 - test/unit/exports-wildcard/output-coverage.js | 1 - test/unit/externals/output-coverage.js | 19 +++-- test/unit/imports/output-coverage.js | 1 - test/unit/minify-err/output-coverage.js | 4 +- test/unit/nested-builds/output-coverage.js | 4 +- test/unit/ts-exts/output-coverage.js | 26 +++--- test/unit/ts-exts/output.js | 85 ++++++++++++++----- test/unit/ts-mixed-modules/output-coverage.js | 12 ++- test/unit/ts-mixed-modules/output.js | 42 ++------- test/unit/ts-target-es2018/output.js | 4 +- .../tsconfig-paths-allowjs/output-coverage.js | 48 ++--------- test/unit/tsconfig-paths-allowjs/output.js | 50 +---------- .../output-coverage.js | 18 ++-- .../output.js | 50 +---------- test/unit/tsconfig-paths/output-coverage.js | 18 ++-- test/unit/tsconfig-paths/output.js | 50 +---------- 21 files changed, 154 insertions(+), 295 deletions(-) diff --git a/test/unit/bundle-subasset/output-coverage.js b/test/unit/bundle-subasset/output-coverage.js index 8ba72bcc4..db50e5fc2 100644 --- a/test/unit/bundle-subasset/output-coverage.js +++ b/test/unit/bundle-subasset/output-coverage.js @@ -2,7 +2,7 @@ /******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 622: +/***/ 17: /***/ ((module) => { module.exports = require("path"); @@ -91,7 +91,7 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { __nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(622); +/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); diff --git a/test/unit/bundle-subasset2/output-coverage.js b/test/unit/bundle-subasset2/output-coverage.js index 2350d9b3a..73feab113 100644 --- a/test/unit/bundle-subasset2/output-coverage.js +++ b/test/unit/bundle-subasset2/output-coverage.js @@ -91,9 +91,9 @@ const external_path_namespaceObject = require("path"); const piscina = new (external_piscina_default())({ - filename: __nccwpck_require__.ab + "pi-bridge.js", + filename: __nccwpck_require__.ab + "pi-bridge.js" }); -(async function () { +(async function() { const result = await piscina.runTask(2); console.log(result); })(); diff --git a/test/unit/custom-emit/output-coverage.js b/test/unit/custom-emit/output-coverage.js index e860540f7..7af3db9ba 100644 --- a/test/unit/custom-emit/output-coverage.js +++ b/test/unit/custom-emit/output-coverage.js @@ -1,7 +1,7 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 747: +/***/ 147: /***/ ((module) => { "use strict"; @@ -50,7 +50,7 @@ module.exports = require("fs"); var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { -const { readFileSync } = __nccwpck_require__(747); +const { readFileSync } = __nccwpck_require__(147); console.log(readFileSync(__dirname + './test.json')); diff --git a/test/unit/double-nested-builds/output-coverage.js b/test/unit/double-nested-builds/output-coverage.js index fcae36695..063ffb2d2 100644 --- a/test/unit/double-nested-builds/output-coverage.js +++ b/test/unit/double-nested-builds/output-coverage.js @@ -128,7 +128,7 @@ /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require__(622); +module.exports = __nccwpck_require__(17); /***/ }) @@ -182,7 +182,7 @@ module.exports = __nccwpck_require__(622); /***/ }), -/***/ 622: +/***/ 17: /***/ ((module) => { "use strict"; diff --git a/test/unit/exports-nomodule/output-coverage.js b/test/unit/exports-nomodule/output-coverage.js index 376d60750..63d25ba84 100644 --- a/test/unit/exports-nomodule/output-coverage.js +++ b/test/unit/exports-nomodule/output-coverage.js @@ -1,4 +1,3 @@ -/******/ "use strict"; /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; diff --git a/test/unit/exports-wildcard/output-coverage.js b/test/unit/exports-wildcard/output-coverage.js index 2d0fa3aea..36cc6b47e 100644 --- a/test/unit/exports-wildcard/output-coverage.js +++ b/test/unit/exports-wildcard/output-coverage.js @@ -1,4 +1,3 @@ -/******/ "use strict"; /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; diff --git a/test/unit/externals/output-coverage.js b/test/unit/externals/output-coverage.js index 37ad607ab..11bf23738 100644 --- a/test/unit/externals/output-coverage.js +++ b/test/unit/externals/output-coverage.js @@ -1,7 +1,15 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 306: +/***/ 378: +/***/ ((module) => { + +"use strict"; +module.exports = require("external-replace/replaced/some-file"); + +/***/ }), + +/***/ 830: /***/ ((module) => { "use strict"; @@ -9,7 +17,7 @@ module.exports = require("externalmapped"); /***/ }), -/***/ 196: +/***/ 958: /***/ ((module) => { "use strict"; @@ -58,12 +66,13 @@ module.exports = require("regexexternal"); var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { -const external = __nccwpck_require__(306); -const regexpExternal = __nccwpck_require__(196); +const external = __nccwpck_require__(830); +const regexpExternal = __nccwpck_require__(958); +const regexpExternalMatch = __nccwpck_require__(378) console.log(external); console.log(regexpExternal); - +console.log(regexpExternalMatch); })(); diff --git a/test/unit/imports/output-coverage.js b/test/unit/imports/output-coverage.js index 1c32d92c3..c9cf28632 100644 --- a/test/unit/imports/output-coverage.js +++ b/test/unit/imports/output-coverage.js @@ -1,4 +1,3 @@ -/******/ "use strict"; /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; diff --git a/test/unit/minify-err/output-coverage.js b/test/unit/minify-err/output-coverage.js index 7479315af..0ea68bff2 100644 --- a/test/unit/minify-err/output-coverage.js +++ b/test/unit/minify-err/output-coverage.js @@ -16,7 +16,7 @@ module.exports = webpackEmptyContext; /***/ }), -/***/ 747: +/***/ 147: /***/ ((module) => { "use strict"; @@ -71,7 +71,7 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { if (global.GENTLY) __nccwpck_require__(875) = GENTLY.hijack(eval("require")); -console.log(__nccwpck_require__(747)); +console.log(__nccwpck_require__(147)); })(); diff --git a/test/unit/nested-builds/output-coverage.js b/test/unit/nested-builds/output-coverage.js index d3b675a9e..09faa87da 100644 --- a/test/unit/nested-builds/output-coverage.js +++ b/test/unit/nested-builds/output-coverage.js @@ -11,7 +11,7 @@ /***/ 622: /***/ ((module) => { - module.exports = __nccwpck_require__(622); + module.exports = __nccwpck_require__(17); /***/ }) @@ -118,7 +118,7 @@ /***/ }), -/***/ 622: +/***/ 17: /***/ ((module) => { "use strict"; diff --git a/test/unit/ts-exts/output-coverage.js b/test/unit/ts-exts/output-coverage.js index 6a6e64e7a..afec49dc1 100644 --- a/test/unit/ts-exts/output-coverage.js +++ b/test/unit/ts-exts/output-coverage.js @@ -2,24 +2,28 @@ /******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 119: +/***/ 124: /***/ ((__unused_webpack_module, exports) => { -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.default = {}; +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: ()=>_default +})); +const _default = {}; /***/ }), -/***/ 43: +/***/ 841: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.default = void 0; -var dep_dep_js_1 = __nccwpck_require__(119); -Object.defineProperty(exports, "default", ({ enumerable: true, get: function () { return dep_dep_js_1.default; } })); +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: ()=>_depDepJs.default +})); +const _depDepJs = __nccwpck_require__(124); /***/ }) @@ -65,11 +69,9 @@ Object.defineProperty(exports, "default", ({ enumerable: true, get: function () var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { -var exports = __webpack_exports__; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const dep_js_1 = __nccwpck_require__(43); -console.log(dep_js_1.default); +const _depJs = __nccwpck_require__(841); +console.log(_depJs.default); })(); diff --git a/test/unit/ts-exts/output.js b/test/unit/ts-exts/output.js index df9717a31..17bf69751 100644 --- a/test/unit/ts-exts/output.js +++ b/test/unit/ts-exts/output.js @@ -1,38 +1,79 @@ /******/ (() => { // webpackBootstrap /******/ "use strict"; -/******/ // The require scope -/******/ var __nccwpck_require__ = {}; -/******/ +/******/ var __webpack_modules__ = ({ + +/***/ 165: +/***/ ((__unused_webpack_module, exports) => { + + +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: ()=>_default +})); +const _default = {}; + + +/***/ }), + +/***/ 344: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + + +Object.defineProperty(exports, "default", ({ + enumerable: true, + get: ()=>_depDepJs.default +})); +const _depDepJs = __nccwpck_require__(165); + + +/***/ }) + +/******/ }); /************************************************************************/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __nccwpck_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 +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// ESM COMPAT FLAG -__nccwpck_require__.r(__webpack_exports__); - -;// CONCATENATED MODULE: ./test/unit/ts-exts/dep-dep.ts -/* harmony default export */ const dep_dep = ({}); - -;// CONCATENATED MODULE: ./test/unit/ts-exts/dep.ts - +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +(() => { -;// CONCATENATED MODULE: ./test/unit/ts-exts/input.ts +const _depJs = __nccwpck_require__(344); +console.log(_depJs.default); -console.log(dep_dep); +})(); module.exports = __webpack_exports__; /******/ })() diff --git a/test/unit/ts-mixed-modules/output-coverage.js b/test/unit/ts-mixed-modules/output-coverage.js index 48075d4db..a5f8748c9 100644 --- a/test/unit/ts-mixed-modules/output-coverage.js +++ b/test/unit/ts-mixed-modules/output-coverage.js @@ -2,13 +2,17 @@ /******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 866: +/***/ 976: /***/ ((module, exports) => { -Object.defineProperty(exports, "__esModule", ({ value: true })); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); const config = { - routes: ['/foo'] + routes: [ + '/foo' + ] }; module.exports = config; @@ -57,7 +61,7 @@ module.exports = config; /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(866); +/******/ var __webpack_exports__ = __nccwpck_require__(976); /******/ module.exports = __webpack_exports__; /******/ /******/ })() diff --git a/test/unit/ts-mixed-modules/output.js b/test/unit/ts-mixed-modules/output.js index d22412d62..fb4f74647 100644 --- a/test/unit/ts-mixed-modules/output.js +++ b/test/unit/ts-mixed-modules/output.js @@ -3,10 +3,12 @@ /******/ var __webpack_modules__ = ({ /***/ 559: -/***/ ((module, __webpack_exports__, __nccwpck_require__) => { +/***/ ((module, exports) => { -__nccwpck_require__.r(__webpack_exports__); -/* module decorator */ module = __nccwpck_require__.hmd(module); + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); const config = { routes: [ '/foo' @@ -15,7 +17,6 @@ const config = { module.exports = config; - /***/ }) /******/ }); @@ -32,8 +33,8 @@ module.exports = config; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { -/******/ id: moduleId, -/******/ loaded: false, +/******/ // no module.id needed +/******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ @@ -46,40 +47,11 @@ module.exports = config; /******/ if(threw) delete __webpack_module_cache__[moduleId]; /******/ } /******/ -/******/ // Flag the module as loaded -/******/ module.loaded = true; -/******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/harmony module decorator */ -/******/ (() => { -/******/ __nccwpck_require__.hmd = (module) => { -/******/ module = Object.create(module); -/******/ if (!module.children) module.children = []; -/******/ Object.defineProperty(module, 'exports', { -/******/ enumerable: true, -/******/ set: () => { -/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id); -/******/ } -/******/ }); -/******/ return module; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; diff --git a/test/unit/ts-target-es2018/output.js b/test/unit/ts-target-es2018/output.js index e39a893ac..5f2aaf142 100644 --- a/test/unit/ts-target-es2018/output.js +++ b/test/unit/ts-target-es2018/output.js @@ -1,11 +1,13 @@ /******/ (() => { // webpackBootstrap +/******/ "use strict"; /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; /******/ /************************************************************************/ var __webpack_exports__ = {}; -if (process?.env.FOO) { + +if (process === null || process === void 0 ? void 0 : process.env.FOO) { console.log('foo'); } diff --git a/test/unit/tsconfig-paths-allowjs/output-coverage.js b/test/unit/tsconfig-paths-allowjs/output-coverage.js index cd8b68e00..4aa0bb3d2 100644 --- a/test/unit/tsconfig-paths-allowjs/output-coverage.js +++ b/test/unit/tsconfig-paths-allowjs/output-coverage.js @@ -1,15 +1,10 @@ /******/ (() => { // webpackBootstrap -/******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 306: -/***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => { +/***/ 818: +/***/ ((module) => { -__nccwpck_require__.r(__webpack_exports__); -/* harmony export */ __nccwpck_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({}); +module.exports = eval("require")("../../../../../../../.././module"); /***/ }) @@ -47,47 +42,18 @@ __nccwpck_require__.r(__webpack_exports__); /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { -var exports = __webpack_exports__; +"use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(306); -console.log(_module_1.default); +const _module = __nccwpck_require__(818); +console.log(_module.default); })(); diff --git a/test/unit/tsconfig-paths-allowjs/output.js b/test/unit/tsconfig-paths-allowjs/output.js index bc41a94cc..9144cafc4 100644 --- a/test/unit/tsconfig-paths-allowjs/output.js +++ b/test/unit/tsconfig-paths-allowjs/output.js @@ -1,10 +1,10 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 17: +/***/ 518: /***/ ((module) => { -module.exports = eval("require")("@module"); +module.exports = eval("require")("../../../../../../../.././module"); /***/ }) @@ -42,46 +42,6 @@ module.exports = eval("require")("@module"); /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; @@ -91,11 +51,9 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; -__nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17); -/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_module__WEBPACK_IMPORTED_MODULE_0__); -console.log((_module__WEBPACK_IMPORTED_MODULE_0___default())); +const _module = __nccwpck_require__(518); +console.log(_module.default); })(); diff --git a/test/unit/tsconfig-paths-conflicting-external/output-coverage.js b/test/unit/tsconfig-paths-conflicting-external/output-coverage.js index acab44d5a..4aa0bb3d2 100644 --- a/test/unit/tsconfig-paths-conflicting-external/output-coverage.js +++ b/test/unit/tsconfig-paths-conflicting-external/output-coverage.js @@ -1,13 +1,10 @@ /******/ (() => { // webpackBootstrap -/******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 775: -/***/ ((__unused_webpack_module, exports) => { +/***/ 818: +/***/ ((module) => { - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.default = {}; +module.exports = eval("require")("../../../../../../../.././module"); /***/ }) @@ -51,13 +48,12 @@ exports.default = {}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { -var exports = __webpack_exports__; +"use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(775); -console.log(_module_1.default); +const _module = __nccwpck_require__(818); +console.log(_module.default); })(); diff --git a/test/unit/tsconfig-paths-conflicting-external/output.js b/test/unit/tsconfig-paths-conflicting-external/output.js index bc41a94cc..9144cafc4 100644 --- a/test/unit/tsconfig-paths-conflicting-external/output.js +++ b/test/unit/tsconfig-paths-conflicting-external/output.js @@ -1,10 +1,10 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 17: +/***/ 518: /***/ ((module) => { -module.exports = eval("require")("@module"); +module.exports = eval("require")("../../../../../../../.././module"); /***/ }) @@ -42,46 +42,6 @@ module.exports = eval("require")("@module"); /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; @@ -91,11 +51,9 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; -__nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17); -/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_module__WEBPACK_IMPORTED_MODULE_0__); -console.log((_module__WEBPACK_IMPORTED_MODULE_0___default())); +const _module = __nccwpck_require__(518); +console.log(_module.default); })(); diff --git a/test/unit/tsconfig-paths/output-coverage.js b/test/unit/tsconfig-paths/output-coverage.js index 5d9a60e1f..4aa0bb3d2 100644 --- a/test/unit/tsconfig-paths/output-coverage.js +++ b/test/unit/tsconfig-paths/output-coverage.js @@ -1,13 +1,10 @@ /******/ (() => { // webpackBootstrap -/******/ "use strict"; /******/ var __webpack_modules__ = ({ -/***/ 520: -/***/ ((__unused_webpack_module, exports) => { +/***/ 818: +/***/ ((module) => { - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.default = {}; +module.exports = eval("require")("../../../../../../../.././module"); /***/ }) @@ -51,13 +48,12 @@ exports.default = {}; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { -var exports = __webpack_exports__; +"use strict"; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const _module_1 = __nccwpck_require__(520); -console.log(_module_1.default); +const _module = __nccwpck_require__(818); +console.log(_module.default); })(); diff --git a/test/unit/tsconfig-paths/output.js b/test/unit/tsconfig-paths/output.js index bc41a94cc..9144cafc4 100644 --- a/test/unit/tsconfig-paths/output.js +++ b/test/unit/tsconfig-paths/output.js @@ -1,10 +1,10 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 17: +/***/ 518: /***/ ((module) => { -module.exports = eval("require")("@module"); +module.exports = eval("require")("../../../../../../../.././module"); /***/ }) @@ -42,46 +42,6 @@ module.exports = eval("require")("@module"); /******/ } /******/ /************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; @@ -91,11 +51,9 @@ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { "use strict"; -__nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17); -/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_module__WEBPACK_IMPORTED_MODULE_0__); -console.log((_module__WEBPACK_IMPORTED_MODULE_0___default())); +const _module = __nccwpck_require__(518); +console.log(_module.default); })();