Skip to content

Commit 158a1fd

Browse files
authored
fix(deps): update webpack to v5.94.0, terser to v5.33.0 (#1213)
Attempt to fix CI, and update webpack and terser to their latest version. - Fixes #1193 - Closes #1194 - Closes #1177 - Closes #1204 - Closes #1195
1 parent c1c9c65 commit 158a1fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3927
-4666
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"source-map-support": "^0.5.9",
9595
"stripe": "^8.167.0",
9696
"swig": "^1.4.2",
97-
"terser": "^5.19.3",
97+
"terser": "^5.33.0",
9898
"the-answer": "^1.0.0",
9999
"tiny-json-http": "^7.5.1",
100100
"ts-loader": "^9.4.4",
@@ -106,7 +106,7 @@
106106
"vue": "^2.5.17",
107107
"vue-server-renderer": "^2.5.17",
108108
"web-vitals": "^0.2.4",
109-
"webpack": "5.76.0",
109+
"webpack": "5.94.0",
110110
"when": "^3.7.8"
111111
},
112112
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"

test/unit/browser-mainfield/output-coverage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 402:
4+
/***/ 854:
55
/***/ (() => {
66

77
console.log('browser file!!')
@@ -91,7 +91,7 @@ var __webpack_exports__ = {};
9191
(() => {
9292
"use strict";
9393
__nccwpck_require__.r(__webpack_exports__);
94-
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(402);
94+
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(854);
9595
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(crypto_browser__WEBPACK_IMPORTED_MODULE_0__);
9696

9797
console.log('main file')

test/unit/browser-mainfield/output.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 329:
4+
/***/ 267:
55
/***/ (() => {
66

77
console.log('browser file!!')
@@ -91,7 +91,7 @@ var __webpack_exports__ = {};
9191
(() => {
9292
"use strict";
9393
__nccwpck_require__.r(__webpack_exports__);
94-
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(329);
94+
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(267);
9595
/* harmony import */ var crypto_browser__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(crypto_browser__WEBPACK_IMPORTED_MODULE_0__);
9696

9797
console.log('main file')

test/unit/bundle-subasset/output-coverage.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/******/ "use strict";
33
/******/ var __webpack_modules__ = ({
44

5-
/***/ 17:
5+
/***/ 928:
66
/***/ ((module) => {
77

88
module.exports = require("path");
@@ -88,10 +88,8 @@ module.exports = require("path");
8888
/******/
8989
/************************************************************************/
9090
var __webpack_exports__ = {};
91-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
92-
(() => {
9391
__nccwpck_require__.r(__webpack_exports__);
94-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17);
92+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(928);
9593
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
9694

9795

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

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

106-
})();
107-
108104
module.exports = __webpack_exports__;
109105
/******/ })()
110106
;

test/unit/bundle-subasset/output.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/******/ "use strict";
33
/******/ var __webpack_modules__ = ({
44

5-
/***/ 17:
5+
/***/ 928:
66
/***/ ((module) => {
77

88
module.exports = require("path");
@@ -88,10 +88,8 @@ module.exports = require("path");
8888
/******/
8989
/************************************************************************/
9090
var __webpack_exports__ = {};
91-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
92-
(() => {
9391
__nccwpck_require__.r(__webpack_exports__);
94-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(17);
92+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(928);
9593
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
9694

9795

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

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

106-
})();
107-
108104
module.exports = __webpack_exports__;
109105
/******/ })()
110106
;

test/unit/bundle-subasset2/output-coverage.js

-13
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,12 @@
6262
/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
6363
/******/ })();
6464
/******/
65-
/******/ /* webpack/runtime/make namespace object */
66-
/******/ (() => {
67-
/******/ // define __esModule on exports
68-
/******/ __nccwpck_require__.r = (exports) => {
69-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
70-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
71-
/******/ }
72-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
73-
/******/ };
74-
/******/ })();
75-
/******/
7665
/******/ /* webpack/runtime/compat */
7766
/******/
7867
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
7968
/******/
8069
/************************************************************************/
8170
var __webpack_exports__ = {};
82-
// ESM COMPAT FLAG
83-
__nccwpck_require__.r(__webpack_exports__);
8471

8572
;// CONCATENATED MODULE: external "piscina"
8673
const external_piscina_namespaceObject = require("piscina");

test/unit/bundle-subasset2/output.js

-13
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,12 @@
6262
/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
6363
/******/ })();
6464
/******/
65-
/******/ /* webpack/runtime/make namespace object */
66-
/******/ (() => {
67-
/******/ // define __esModule on exports
68-
/******/ __nccwpck_require__.r = (exports) => {
69-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
70-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
71-
/******/ }
72-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
73-
/******/ };
74-
/******/ })();
75-
/******/
7665
/******/ /* webpack/runtime/compat */
7766
/******/
7867
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
7968
/******/
8069
/************************************************************************/
8170
var __webpack_exports__ = {};
82-
// ESM COMPAT FLAG
83-
__nccwpck_require__.r(__webpack_exports__);
8471

8572
;// CONCATENATED MODULE: external "piscina"
8673
const external_piscina_namespaceObject = require("piscina");

test/unit/custom-emit/output-coverage.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 147:
4+
/***/ 896:
55
/***/ ((module) => {
66

77
"use strict";
@@ -48,14 +48,10 @@ module.exports = require("fs");
4848
/******/
4949
/************************************************************************/
5050
var __webpack_exports__ = {};
51-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
52-
(() => {
53-
const { readFileSync } = __nccwpck_require__(147);
51+
const { readFileSync } = __nccwpck_require__(896);
5452
console.log(readFileSync(__dirname + './test.json'));
5553

5654

57-
})();
58-
5955
module.exports = __webpack_exports__;
6056
/******/ })()
6157
;

test/unit/custom-emit/output.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 147:
4+
/***/ 896:
55
/***/ ((module) => {
66

77
"use strict";
@@ -48,14 +48,10 @@ module.exports = require("fs");
4848
/******/
4949
/************************************************************************/
5050
var __webpack_exports__ = {};
51-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
52-
(() => {
53-
const { readFileSync } = __nccwpck_require__(147);
51+
const { readFileSync } = __nccwpck_require__(896);
5452
console.log(readFileSync(__dirname + './test.json'));
5553

5654

57-
})();
58-
5955
module.exports = __webpack_exports__;
6056
/******/ })()
6157
;

test/unit/double-nested-builds/output-coverage.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 206:
4+
/***/ 447:
55
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
66

77
/******/ (() => { // webpackBootstrap
@@ -99,10 +99,10 @@
9999
/******/ if (typeof __nccwpck_require3_ !== 'undefined') __nccwpck_require3_.ab = __dirname + "/";
100100
/******/
101101
/************************************************************************/
102-
var __webpack_exports__ = {};
102+
var __nested_webpack_exports__ = {};
103103
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
104104
(() => {
105-
__nccwpck_require3_.r(__webpack_exports__);
105+
__nccwpck_require3_.r(__nested_webpack_exports__);
106106
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require3_(622);
107107
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require3_.n(path__WEBPACK_IMPORTED_MODULE_0__);
108108

@@ -117,7 +117,7 @@
117117

118118
})();
119119

120-
module.exports = __webpack_exports__;
120+
module.exports = __nested_webpack_exports__;
121121
/******/ })()
122122
;
123123

@@ -128,7 +128,7 @@
128128
/***/ ((module) => {
129129

130130
"use strict";
131-
module.exports = __nccwpck_require__(17);
131+
module.exports = __nccwpck_require__(928);
132132

133133
/***/ })
134134

@@ -174,15 +174,15 @@ module.exports = __nccwpck_require__(17);
174174
/******/ // startup
175175
/******/ // Load entry module and return exports
176176
/******/ // This entry module is referenced by other modules so it can't be inlined
177-
/******/ var __webpack_exports__ = __nccwpck_require2_(332);
178-
/******/ module.exports = __webpack_exports__;
177+
/******/ var __nested_webpack_exports__ = __nccwpck_require2_(332);
178+
/******/ module.exports = __nested_webpack_exports__;
179179
/******/
180180
/******/ })()
181181
;
182182

183183
/***/ }),
184184

185-
/***/ 17:
185+
/***/ 928:
186186
/***/ ((module) => {
187187

188188
"use strict";
@@ -232,7 +232,7 @@ module.exports = require("path");
232232
/******/ // startup
233233
/******/ // Load entry module and return exports
234234
/******/ // This entry module is referenced by other modules so it can't be inlined
235-
/******/ var __webpack_exports__ = __nccwpck_require__(206);
235+
/******/ var __webpack_exports__ = __nccwpck_require__(447);
236236
/******/ module.exports = __webpack_exports__;
237237
/******/
238238
/******/ })()

test/unit/double-nested-builds/output.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ var __webpack_modules__ = ({
33

4-
/***/ 39:
4+
/***/ 236:
55
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
66

77
/******/ (() => { // webpackBootstrap
@@ -99,10 +99,10 @@
9999
/******/ if (typeof __nccwpck_require3_ !== 'undefined') __nccwpck_require3_.ab = __dirname + "/";
100100
/******/
101101
/************************************************************************/
102-
var __webpack_exports__ = {};
102+
var __nested_webpack_exports__ = {};
103103
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
104104
(() => {
105-
__nccwpck_require3_.r(__webpack_exports__);
105+
__nccwpck_require3_.r(__nested_webpack_exports__);
106106
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require3_(622);
107107
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require3_.n(path__WEBPACK_IMPORTED_MODULE_0__);
108108

@@ -117,7 +117,7 @@
117117

118118
})();
119119

120-
module.exports = __webpack_exports__;
120+
module.exports = __nested_webpack_exports__;
121121
/******/ })()
122122
;
123123

@@ -128,7 +128,7 @@
128128
/***/ ((module) => {
129129

130130
"use strict";
131-
module.exports = __nccwpck_require__(17);
131+
module.exports = __nccwpck_require__(928);
132132

133133
/***/ })
134134

@@ -174,15 +174,15 @@ module.exports = __nccwpck_require__(17);
174174
/******/ // startup
175175
/******/ // Load entry module and return exports
176176
/******/ // This entry module is referenced by other modules so it can't be inlined
177-
/******/ var __webpack_exports__ = __nccwpck_require2_(332);
178-
/******/ module.exports = __webpack_exports__;
177+
/******/ var __nested_webpack_exports__ = __nccwpck_require2_(332);
178+
/******/ module.exports = __nested_webpack_exports__;
179179
/******/
180180
/******/ })()
181181
;
182182

183183
/***/ }),
184184

185-
/***/ 17:
185+
/***/ 928:
186186
/***/ ((module) => {
187187

188188
"use strict";
@@ -232,7 +232,7 @@ module.exports = require("path");
232232
/******/ // startup
233233
/******/ // Load entry module and return exports
234234
/******/ // This entry module is referenced by other modules so it can't be inlined
235-
/******/ var __webpack_exports__ = __nccwpck_require__(39);
235+
/******/ var __webpack_exports__ = __nccwpck_require__(236);
236236
/******/ module.exports = __webpack_exports__;
237237
/******/
238238
/******/ })()

0 commit comments

Comments
 (0)