Skip to content

Commit

Permalink
test: update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Sep 10, 2024
1 parent 827daf4 commit a484c70
Show file tree
Hide file tree
Showing 42 changed files with 114 additions and 172 deletions.
4 changes: 2 additions & 2 deletions test/unit/browser-mainfield/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 402:
/***/ 854:
/***/ (() => {

console.log('browser file!!')
Expand Down Expand Up @@ -91,7 +91,7 @@ var __webpack_exports__ = {};
(() => {
"use strict";
__nccwpck_require__.r(__webpack_exports__);
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(402);
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(854);
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(crypto_browser__WEBPACK_IMPORTED_MODULE_0__);

console.log('main file')
Expand Down
4 changes: 2 additions & 2 deletions test/unit/browser-mainfield/output.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 329:
/***/ 267:
/***/ (() => {

console.log('browser file!!')
Expand Down Expand Up @@ -91,7 +91,7 @@ var __webpack_exports__ = {};
(() => {
"use strict";
__nccwpck_require__.r(__webpack_exports__);
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(329);
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(267);
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(crypto_browser__WEBPACK_IMPORTED_MODULE_0__);

console.log('main file')
Expand Down
8 changes: 2 additions & 6 deletions test/unit/bundle-subasset/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({

/***/ 17:
/***/ 928:
/***/ ((module) => {

module.exports = require("path");
Expand Down Expand Up @@ -88,10 +88,8 @@ module.exports = require("path");
/******/
/************************************************************************/
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__(17);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);


Expand All @@ -103,8 +101,6 @@ const obscureRequire = eval(`function obscureRequire (file) {

console.log(obscureRequire(__nccwpck_require__.ab + "pi-bridge.js"));

})();

module.exports = __webpack_exports__;
/******/ })()
;
8 changes: 2 additions & 6 deletions test/unit/bundle-subasset/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({

/***/ 17:
/***/ 928:
/***/ ((module) => {

module.exports = require("path");
Expand Down Expand Up @@ -88,10 +88,8 @@ module.exports = require("path");
/******/
/************************************************************************/
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__(17);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);


Expand All @@ -103,8 +101,6 @@ const obscureRequire = eval(`function obscureRequire (file) {

console.log(obscureRequire(__nccwpck_require__.ab + "pi-bridge.js"));

})();

module.exports = __webpack_exports__;
/******/ })()
;
13 changes: 0 additions & 13 deletions test/unit/bundle-subasset2/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,12 @@
/******/ __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__ = {};
// ESM COMPAT FLAG
__nccwpck_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "piscina"
const external_piscina_namespaceObject = require("piscina");
Expand Down
13 changes: 0 additions & 13 deletions test/unit/bundle-subasset2/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,12 @@
/******/ __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__ = {};
// ESM COMPAT FLAG
__nccwpck_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "piscina"
const external_piscina_namespaceObject = require("piscina");
Expand Down
8 changes: 2 additions & 6 deletions test/unit/custom-emit/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 147:
/***/ 896:
/***/ ((module) => {

"use strict";
Expand Down Expand Up @@ -48,14 +48,10 @@ 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__(147);
const { readFileSync } = __nccwpck_require__(896);
console.log(readFileSync(__dirname + './test.json'));


})();

module.exports = __webpack_exports__;
/******/ })()
;
8 changes: 2 additions & 6 deletions test/unit/custom-emit/output.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 147:
/***/ 896:
/***/ ((module) => {

"use strict";
Expand Down Expand Up @@ -48,14 +48,10 @@ 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__(147);
const { readFileSync } = __nccwpck_require__(896);
console.log(readFileSync(__dirname + './test.json'));


})();

module.exports = __webpack_exports__;
/******/ })()
;
18 changes: 9 additions & 9 deletions test/unit/double-nested-builds/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 206:
/***/ 447:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

/******/ (() => { // webpackBootstrap
Expand Down Expand Up @@ -99,10 +99,10 @@
/******/ if (typeof __nccwpck_require3_ !== 'undefined') __nccwpck_require3_.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
var __nested_webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
__nccwpck_require3_.r(__webpack_exports__);
__nccwpck_require3_.r(__nested_webpack_exports__);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require3_(622);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require3_.n(path__WEBPACK_IMPORTED_MODULE_0__);

Expand All @@ -117,7 +117,7 @@

})();

module.exports = __webpack_exports__;
module.exports = __nested_webpack_exports__;
/******/ })()
;

Expand All @@ -128,7 +128,7 @@
/***/ ((module) => {

"use strict";
module.exports = __nccwpck_require__(17);
module.exports = __nccwpck_require__(928);

/***/ })

Expand Down Expand Up @@ -174,15 +174,15 @@ module.exports = __nccwpck_require__(17);
/******/ // 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_require2_(332);
/******/ module.exports = __webpack_exports__;
/******/ var __nested_webpack_exports__ = __nccwpck_require2_(332);
/******/ module.exports = __nested_webpack_exports__;
/******/
/******/ })()
;

/***/ }),

/***/ 17:
/***/ 928:
/***/ ((module) => {

"use strict";
Expand Down Expand Up @@ -232,7 +232,7 @@ module.exports = require("path");
/******/ // 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__(206);
/******/ var __webpack_exports__ = __nccwpck_require__(447);
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
Expand Down
18 changes: 9 additions & 9 deletions test/unit/double-nested-builds/output.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 39:
/***/ 236:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

/******/ (() => { // webpackBootstrap
Expand Down Expand Up @@ -99,10 +99,10 @@
/******/ if (typeof __nccwpck_require3_ !== 'undefined') __nccwpck_require3_.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
var __nested_webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
__nccwpck_require3_.r(__webpack_exports__);
__nccwpck_require3_.r(__nested_webpack_exports__);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require3_(622);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require3_.n(path__WEBPACK_IMPORTED_MODULE_0__);

Expand All @@ -117,7 +117,7 @@

})();

module.exports = __webpack_exports__;
module.exports = __nested_webpack_exports__;
/******/ })()
;

Expand All @@ -128,7 +128,7 @@
/***/ ((module) => {

"use strict";
module.exports = __nccwpck_require__(17);
module.exports = __nccwpck_require__(928);

/***/ })

Expand Down Expand Up @@ -174,15 +174,15 @@ module.exports = __nccwpck_require__(17);
/******/ // 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_require2_(332);
/******/ module.exports = __webpack_exports__;
/******/ var __nested_webpack_exports__ = __nccwpck_require2_(332);
/******/ module.exports = __nested_webpack_exports__;
/******/
/******/ })()
;

/***/ }),

/***/ 17:
/***/ 928:
/***/ ((module) => {

"use strict";
Expand Down Expand Up @@ -232,7 +232,7 @@ module.exports = require("path");
/******/ // 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__(39);
/******/ var __webpack_exports__ = __nccwpck_require__(236);
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
Expand Down
16 changes: 6 additions & 10 deletions test/unit/externals/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 378:
/***/ 708:
/***/ ((module) => {

"use strict";
module.exports = require("external-replace/replaced/some-file");

/***/ }),

/***/ 830:
/***/ 371:
/***/ ((module) => {

"use strict";
module.exports = require("externalmapped");

/***/ }),

/***/ 958:
/***/ 689:
/***/ ((module) => {

"use strict";
Expand Down Expand Up @@ -64,18 +64,14 @@ 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__(830);
const regexpExternal = __nccwpck_require__(958);
const regexpExternalMatch = __nccwpck_require__(378)
const external = __nccwpck_require__(371);
const regexpExternal = __nccwpck_require__(689);
const regexpExternalMatch = __nccwpck_require__(708)

console.log(external);
console.log(regexpExternal);
console.log(regexpExternalMatch);

})();

module.exports = __webpack_exports__;
/******/ })()
;
Loading

0 comments on commit a484c70

Please sign in to comment.