Skip to content

Commit

Permalink
test: fix single upload webpack tests due to change in webpack format
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Longridge committed Nov 16, 2023
1 parent 734c07c commit a409c1a
Show file tree
Hide file tree
Showing 8 changed files with 1,887 additions and 1,445 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions features/expected/single-source-map-webpack/source-map.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{
"version": 3,
"file": "main.js",
"mappings": "sBAAAA,QAAQC,IAAI,Y,WCAZD,QAAQC,IAAI,Y,GCCRC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCtBAP,QAAQC,IAAI,MAEZ,EAAQ,KACR,EAAQ,I",
"sources": [
"src/lib/a.js",
"src/lib/b.js",
"webpack://single-source-map-webpack/webpack/bootstrap",
"src/index.js"
],
"sourcesContent": [
"console.log('hi from a')\n",
"console.log('hi from b')\n",
"// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n",
"console.log('hi')\n\nrequire('./lib/a')\nrequire('./lib/b')\n"
],
"sourceRoot": "",
"names": [
"console",
"log",
"__webpack_module_cache__",
"__webpack_require__",
"moduleId",
"cachedModule",
"undefined",
"exports",
"module",
"__webpack_modules__"
],
"mappings": "sBAAAA,QAAQC,IAAI,c,SCAZD,QAAQC,IAAI,eCCRC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUC,QAG3C,IAAIC,EAASJ,EAAyBE,GAAY,CAGjDC,QAAS,IAOV,OAHAE,EAAoBH,GAAUE,EAAQA,EAAOD,QAASF,GAG/CG,EAAOD,QCpBfL,QAAQC,IAAI,MAEZ,EAAQ,KACR,EAAQ,M",
"file": "main.js",
"sourcesContent": [
"console.log('hi from a')\n",
"console.log('hi from b')\n",
"// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n",
"console.log('hi')\n\nrequire('./lib/a')\nrequire('./lib/b')\n"
],
"sourceRoot": ""
]
}
2 changes: 1 addition & 1 deletion features/expected/webpack-nosources/minified-file.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions features/expected/webpack-nosources/source-map.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"version": 3,
"file": "main.js",
"mappings": "sBAAAA,QAAQC,IAAI,Y,WCAZD,QAAQC,IAAI,Y,GCCRC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCtBAP,QAAQC,IAAI,MAEZ,EAAQ,KACR,EAAQ,I",
"sources": [
"src/lib/a.js",
"src/lib/b.js",
Expand All @@ -12,12 +14,12 @@
"__webpack_module_cache__",
"__webpack_require__",
"moduleId",
"cachedModule",
"undefined",
"exports",
"module",
"__webpack_modules__"
],
"mappings": "sBAAAA,QAAQC,IAAI,c,SCAZD,QAAQC,IAAI,eCCRC,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUC,QAG3C,IAAIC,EAASJ,EAAyBE,GAAY,CAGjDC,QAAS,IAOV,OAHAE,EAAoBH,GAAUE,EAAQA,EAAOD,QAASF,GAG/CG,EAAOD,QCpBfL,QAAQC,IAAI,MAEZ,EAAQ,KACR,EAAQ,M",
"file": "main.js",
"sourceRoot": "",
"sourcesContent": [
"console.log('hi from a')\n",
Expand Down
Loading

0 comments on commit a409c1a

Please sign in to comment.