Skip to content

Commit

Permalink
fix output-coverage.js
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed May 16, 2024
1 parent 7e8060e commit 7d71778
Show file tree
Hide file tree
Showing 79 changed files with 477 additions and 296 deletions.
4 changes: 3 additions & 1 deletion test/unit/amd-disable/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/******/ (() => { // webpackBootstrap
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
if (typeof define === 'function' && define.amd)
define(function (require) {
Expand Down
10 changes: 6 additions & 4 deletions test/unit/array-emission/output-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({

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

module.exports = require("fs");;
module.exports = require("fs");

/***/ })

Expand Down Expand Up @@ -38,13 +38,15 @@ module.exports = require("fs");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_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.
(() => {


const fs = __webpack_require__(747);
const fs = __webpack_require__(147);

const REPORT_JAVASCRIPT = [
fs.readFileSync(__webpack_require__.ab + "util.js", 'utf8'),
Expand Down
4 changes: 3 additions & 1 deletion test/unit/array-holes/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/******/ (() => { // webpackBootstrap
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
var a = [1,,2];

Expand Down
10 changes: 6 additions & 4 deletions test/unit/asset-conditional/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

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

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

/***/ })

Expand Down Expand Up @@ -38,11 +38,13 @@ module.exports = require("path");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_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.
(() => {
const path = __webpack_require__(622);
const path = __webpack_require__(17);
let moduleJsPath = isHarmony ? __webpack_require__.ab + "asset1.txt" : __webpack_require__.ab + "asset2.txt";
})();

Expand Down
16 changes: 9 additions & 7 deletions test/unit/asset-fs-array-expr/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 129:
/***/ 81:
/***/ ((module) => {

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

/***/ }),

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

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

/***/ })

Expand Down Expand Up @@ -46,12 +46,14 @@ module.exports = require("path");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_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.
(() => {
const { spawn } = __webpack_require__(129);
const { join } = __webpack_require__(622);
const { spawn } = __webpack_require__(81);
const { join } = __webpack_require__(17);

const child = spawn(gifsicle, ['--colors', '256', __webpack_require__.ab + "asset1.txt"]);

Expand Down
10 changes: 6 additions & 4 deletions test/unit/asset-fs-existing-asset-name/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

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

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

/***/ })

Expand Down Expand Up @@ -38,11 +38,13 @@ module.exports = require("fs");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_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.
(() => {
const fs = __webpack_require__(747);
const fs = __webpack_require__(147);
console.log(fs.readFileSync(__webpack_require__.ab + "existing1.txt"));

})();
Expand Down
16 changes: 9 additions & 7 deletions test/unit/asset-fs-inline-assign/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

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

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

/***/ }),

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

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

/***/ })

Expand Down Expand Up @@ -46,12 +46,14 @@ module.exports = require("path");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_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.
(() => {
const fs = __webpack_require__(747);
const { join } = __webpack_require__(622);
const fs = __webpack_require__(147);
const { join } = __webpack_require__(17);

console.log(fs.readFileSync(__webpack_require__.ab + "asset.txt", 'utf8'));

Expand Down
10 changes: 7 additions & 3 deletions test/unit/asset-fs-inline-path-enc-es-2/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
Expand Down Expand Up @@ -67,16 +69,18 @@
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "fs"
const external_fs_namespaceObject = require("fs");;
const external_fs_namespaceObject = require("fs");
var external_fs_default = /*#__PURE__*/__webpack_require__.n(external_fs_namespaceObject);
;// CONCATENATED MODULE: external "path"
const external_path_namespaceObject = require("path");;
const external_path_namespaceObject = require("path");
;// CONCATENATED MODULE: ./test/unit/asset-fs-inline-path-enc-es-2/input.js


Expand Down
10 changes: 7 additions & 3 deletions test/unit/asset-fs-inline-path-enc-es-3/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
Expand Down Expand Up @@ -67,16 +69,18 @@
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "fs"
const external_fs_namespaceObject = require("fs");;
const external_fs_namespaceObject = require("fs");
var external_fs_default = /*#__PURE__*/__webpack_require__.n(external_fs_namespaceObject);
;// CONCATENATED MODULE: external "path"
const external_path_namespaceObject = require("path");;
const external_path_namespaceObject = require("path");
;// CONCATENATED MODULE: ./test/unit/asset-fs-inline-path-enc-es-3/input.js


Expand Down
10 changes: 7 additions & 3 deletions test/unit/asset-fs-inline-path-enc-es-4/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
Expand Down Expand Up @@ -67,16 +69,18 @@
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "fs"
const external_fs_namespaceObject = require("fs");;
const external_fs_namespaceObject = require("fs");
var external_fs_default = /*#__PURE__*/__webpack_require__.n(external_fs_namespaceObject);
;// CONCATENATED MODULE: external "path"
const external_path_namespaceObject = require("path");;
const external_path_namespaceObject = require("path");
;// CONCATENATED MODULE: ./test/unit/asset-fs-inline-path-enc-es-4/input.js


Expand Down
10 changes: 7 additions & 3 deletions test/unit/asset-fs-inline-path-enc-es-5/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
Expand Down Expand Up @@ -67,16 +69,18 @@
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "fs"
const external_fs_namespaceObject = require("fs");;
const external_fs_namespaceObject = require("fs");
var external_fs_default = /*#__PURE__*/__webpack_require__.n(external_fs_namespaceObject);
;// CONCATENATED MODULE: external "path"
const external_path_namespaceObject = require("path");;
const external_path_namespaceObject = require("path");
;// CONCATENATED MODULE: ./test/unit/asset-fs-inline-path-enc-es-5/input.js


Expand Down
10 changes: 7 additions & 3 deletions test/unit/asset-fs-inline-path-enc-es/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({});
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
Expand Down Expand Up @@ -67,16 +69,18 @@
/******/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";
/******/
/************************************************************************/
var __webpack_exports__ = {};
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

;// CONCATENATED MODULE: external "fs"
const external_fs_namespaceObject = require("fs");;
const external_fs_namespaceObject = require("fs");
var external_fs_default = /*#__PURE__*/__webpack_require__.n(external_fs_namespaceObject);
;// CONCATENATED MODULE: external "path"
const external_path_namespaceObject = require("path");;
const external_path_namespaceObject = require("path");
;// CONCATENATED MODULE: ./test/unit/asset-fs-inline-path-enc-es/input.js


Expand Down
16 changes: 9 additions & 7 deletions test/unit/asset-fs-inline-path-enc/output-coverage.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

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

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

/***/ }),

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

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

/***/ })

Expand Down Expand Up @@ -46,12 +46,14 @@ module.exports = require("path");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __webpack_require__ !== 'undefined') __webpack_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.
(() => {
const fs = __webpack_require__(747);
const { join } = __webpack_require__(622);
const fs = __webpack_require__(147);
const { join } = __webpack_require__(17);
console.log(fs.readFileSync(__webpack_require__.ab + "asset.txt", 'utf8'));
})();

Expand Down
Loading

0 comments on commit 7d71778

Please sign in to comment.