Skip to content

Commit

Permalink
fix(deps): update webpack to v5.94.0, terser to v5.33.0 (#1213)
Browse files Browse the repository at this point in the history
Attempt to fix CI, and update webpack and terser to their latest
version.

- Fixes #1193
- Closes #1194
- Closes #1177
- Closes #1204
- Closes #1195
  • Loading branch information
theoludwig authored Sep 23, 2024
1 parent c1c9c65 commit 158a1fd
Show file tree
Hide file tree
Showing 44 changed files with 3,927 additions and 4,666 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"source-map-support": "^0.5.9",
"stripe": "^8.167.0",
"swig": "^1.4.2",
"terser": "^5.19.3",
"terser": "^5.33.0",
"the-answer": "^1.0.0",
"tiny-json-http": "^7.5.1",
"ts-loader": "^9.4.4",
Expand All @@ -106,7 +106,7 @@
"vue": "^2.5.17",
"vue-server-renderer": "^2.5.17",
"web-vitals": "^0.2.4",
"webpack": "5.76.0",
"webpack": "5.94.0",
"when": "^3.7.8"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
Expand Down
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
Loading

0 comments on commit 158a1fd

Please sign in to comment.