upgrade webpack to 5.31.2 (#23861)

https://github.com/webpack/webpack/releases/tag/v5.31.1

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ ] Make sure the linting passes
This commit is contained in:
Tobias Koppers 2021-04-09 20:31:26 +02:00 committed by GitHub
parent 0af3b52640
commit 1258d13d73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 103 additions and 402 deletions

View file

@ -211,11 +211,9 @@ caniuse-lite@1.0.30001179, caniuse-lite@^1.0.30001173:
integrity sha512-blMmO0QQujuUWZKyVrD1msR4WNDAqb/UPO1Sw2WWsQ7deoM5bJiicKnWJ1Y0NS/aGINSnKPIWBMw5luX+NDUCA== integrity sha512-blMmO0QQujuUWZKyVrD1msR4WNDAqb/UPO1Sw2WWsQ7deoM5bJiicKnWJ1Y0NS/aGINSnKPIWBMw5luX+NDUCA==
chrome-trace-event@^1.0.2: chrome-trace-event@^1.0.2:
version "1.0.2" version "1.0.3"
resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4" resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac"
integrity sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ== integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==
dependencies:
tslib "^1.9.0"
colorette@^1.2.1: colorette@^1.2.1:
version "1.2.2" version "1.2.2"
@ -228,9 +226,9 @@ commander@^2.20.0:
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
electron-to-chromium@^1.3.634: electron-to-chromium@^1.3.634:
version "1.3.709" version "1.3.711"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.709.tgz#d7be0b5686a2fdfe8bad898faa3a428d04d8f656" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.711.tgz#92c3caf7ffed5e18bf63f66b4b57b4db2409c450"
integrity sha512-LolItk2/ikSGQ7SN8UkuKVNMBZp3RG7Itgaxj1npsHRzQobj9JjMneZOZfLhtwlYBe5fCJ75k+cVCiDFUs23oA== integrity sha512-XbklBVCDiUeho0PZQCjC25Ha6uBwqqJeyDhPLwLwfWRAo4x+FZFsmu1pPPkXT+B4MQMQoQULfyaMltDopfeiHQ==
enhanced-resolve@^5.7.0: enhanced-resolve@^5.7.0:
version "5.7.0" version "5.7.0"
@ -452,11 +450,6 @@ terser@^5.5.1:
source-map "~0.7.2" source-map "~0.7.2"
source-map-support "~0.5.19" source-map-support "~0.5.19"
tslib@^1.9.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
uri-js@^4.2.2: uri-js@^4.2.2:
version "4.4.1" version "4.4.1"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
@ -481,9 +474,9 @@ watchpack@^2.0.0:
source-map "^0.6.1" source-map "^0.6.1"
"webpack5@npm:webpack@5": "webpack5@npm:webpack@5":
version "5.31.0" version "5.31.2"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.31.0.tgz#fab61d0be896feca4af87bdad5c18815c0d63455" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.31.2.tgz#40d9b9d15b7d76af73d3f1cae895b82613a544d6"
integrity sha512-3fUfZT/FUuThWSSyL32Fsh7weUUfYP/Fjc/cGSbla5KiSo0GtI1JMssCRUopJTvmLjrw05R2q7rlLtiKdSzkzQ== integrity sha512-0bCQe4ybo7T5Z0SC5axnIAH+1WuIdV4FwLYkaAlLtvfBhIx8bPS48WHTfiRZS1VM+pSiYt7e/rgLs3gLrH82lQ==
dependencies: dependencies:
"@types/eslint-scope" "^3.7.0" "@types/eslint-scope" "^3.7.0"
"@types/estree" "^0.0.46" "@types/estree" "^0.0.46"

View file

@ -54,7 +54,7 @@ module.exports = JSON.parse("{\"name\":\"terser\",\"description\":\"JavaScript p
/***/ (function(module) { /***/ (function(module) {
"use strict"; "use strict";
module.exports = {"i8":"5.31.0"}; module.exports = {"i8":"5.31.2"};
/***/ }), /***/ }),
@ -14917,24 +14917,22 @@ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
* https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU * https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU
*/ */
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
var tslib_1 = __webpack_require__(7960); exports.Tracer = void 0;
var stream_1 = __webpack_require__(92413); const stream_1 = __webpack_require__(92413);
function evCommon() { function evCommon() {
var hrtime = process.hrtime(); // [seconds, nanoseconds] var hrtime = process.hrtime(); // [seconds, nanoseconds]
var ts = hrtime[0] * 1000000 + Math.round(hrtime[1] / 1000); // microseconds var ts = hrtime[0] * 1000000 + Math.round(hrtime[1] / 1000); // microseconds
return { return {
ts: ts, ts,
pid: process.pid, pid: process.pid,
tid: process.pid // no meaningful tid for node.js tid: process.pid // no meaningful tid for node.js
}; };
} }
var Tracer = /** @class */ (function (_super) { class Tracer extends stream_1.Readable {
tslib_1.__extends(Tracer, _super); constructor(opts = {}) {
function Tracer(opts) { super();
if (opts === void 0) { opts = {}; } this.noStream = false;
var _this = _super.call(this) || this; this.events = [];
_this.noStream = false;
_this.events = [];
if (typeof opts !== "object") { if (typeof opts !== "object") {
throw new Error("Invalid options passed (must be an object)"); throw new Error("Invalid options passed (must be an object)");
} }
@ -14948,63 +14946,61 @@ var Tracer = /** @class */ (function (_super) {
(opts.objectMode !== true && opts.objectMode !== false)) { (opts.objectMode !== true && opts.objectMode !== false)) {
throw new Error("Invalid option (objectsMode) passed (must be a boolean)"); throw new Error("Invalid option (objectsMode) passed (must be a boolean)");
} }
_this.noStream = opts.noStream || false; this.noStream = opts.noStream || false;
_this.parent = opts.parent; this.parent = opts.parent;
if (_this.parent) { if (this.parent) {
_this.fields = Object.assign({}, opts.parent && opts.parent.fields); this.fields = Object.assign({}, opts.parent && opts.parent.fields);
} }
else { else {
_this.fields = {}; this.fields = {};
} }
if (opts.fields) { if (opts.fields) {
Object.assign(_this.fields, opts.fields); Object.assign(this.fields, opts.fields);
} }
if (!_this.fields.cat) { if (!this.fields.cat) {
// trace-viewer *requires* `cat`, so let's have a fallback. // trace-viewer *requires* `cat`, so let's have a fallback.
_this.fields.cat = "default"; this.fields.cat = "default";
} }
else if (Array.isArray(_this.fields.cat)) { else if (Array.isArray(this.fields.cat)) {
_this.fields.cat = _this.fields.cat.join(","); this.fields.cat = this.fields.cat.join(",");
} }
if (!_this.fields.args) { if (!this.fields.args) {
// trace-viewer *requires* `args`, so let's have a fallback. // trace-viewer *requires* `args`, so let's have a fallback.
_this.fields.args = {}; this.fields.args = {};
} }
if (_this.parent) { if (this.parent) {
// TODO: Not calling Readable ctor here. Does that cause probs? // TODO: Not calling Readable ctor here. Does that cause probs?
// Probably if trying to pipe from the child. // Probably if trying to pipe from the child.
// Might want a serpate TracerChild class for these guys. // Might want a serpate TracerChild class for these guys.
_this._push = _this.parent._push.bind(_this.parent); this._push = this.parent._push.bind(this.parent);
} }
else { else {
_this._objectMode = Boolean(opts.objectMode); this._objectMode = Boolean(opts.objectMode);
var streamOpts = { objectMode: _this._objectMode }; var streamOpts = { objectMode: this._objectMode };
if (_this._objectMode) { if (this._objectMode) {
_this._push = _this.push; this._push = this.push;
} }
else { else {
_this._push = _this._pushString; this._push = this._pushString;
streamOpts.encoding = "utf8"; streamOpts.encoding = "utf8";
} }
stream_1.Readable.call(_this, streamOpts); stream_1.Readable.call(this, streamOpts);
} }
return _this;
} }
/** /**
* If in no streamMode in order to flush out the trace * If in no streamMode in order to flush out the trace
* you need to call flush. * you need to call flush.
*/ */
Tracer.prototype.flush = function () { flush() {
if (this.noStream === true) { if (this.noStream === true) {
for (var _i = 0, _a = this.events; _i < _a.length; _i++) { for (const evt of this.events) {
var evt = _a[_i];
this._push(evt); this._push(evt);
} }
this._flush(); this._flush();
} }
}; }
Tracer.prototype._read = function (_) { }; _read(_) { }
Tracer.prototype._pushString = function (ev) { _pushString(ev) {
var separator = ""; var separator = "";
if (!this.firstPush) { if (!this.firstPush) {
this.push("["); this.push("[");
@ -15014,33 +15010,32 @@ var Tracer = /** @class */ (function (_super) {
separator = ",\n"; separator = ",\n";
} }
this.push(separator + JSON.stringify(ev), "utf8"); this.push(separator + JSON.stringify(ev), "utf8");
}; }
Tracer.prototype._flush = function () { _flush() {
if (!this._objectMode) { if (!this._objectMode) {
this.push("]"); this.push("]");
} }
}; }
Tracer.prototype.child = function (fields) { child(fields) {
return new Tracer({ return new Tracer({
parent: this, parent: this,
fields: fields fields: fields
}); });
}; }
Tracer.prototype.begin = function (fields) { begin(fields) {
return this.mkEventFunc("b")(fields); return this.mkEventFunc("b")(fields);
}; }
Tracer.prototype.end = function (fields) { end(fields) {
return this.mkEventFunc("e")(fields); return this.mkEventFunc("e")(fields);
}; }
Tracer.prototype.completeEvent = function (fields) { completeEvent(fields) {
return this.mkEventFunc("X")(fields); return this.mkEventFunc("X")(fields);
}; }
Tracer.prototype.instantEvent = function (fields) { instantEvent(fields) {
return this.mkEventFunc("I")(fields); return this.mkEventFunc("I")(fields);
}; }
Tracer.prototype.mkEventFunc = function (ph) { mkEventFunc(ph) {
var _this = this; return (fields) => {
return function (fields) {
var ev = evCommon(); var ev = evCommon();
// Assign the event phase. // Assign the event phase.
ev.ph = ph; ev.ph = ph;
@ -15049,8 +15044,7 @@ var Tracer = /** @class */ (function (_super) {
ev.name = fields; ev.name = fields;
} }
else { else {
for (var _i = 0, _a = Object.keys(fields); _i < _a.length; _i++) { for (const k of Object.keys(fields)) {
var k = _a[_i];
if (k === "cat") { if (k === "cat") {
ev.cat = fields.cat.join(","); ev.cat = fields.cat.join(",");
} }
@ -15060,16 +15054,15 @@ var Tracer = /** @class */ (function (_super) {
} }
} }
} }
if (!_this.noStream) { if (!this.noStream) {
_this._push(ev); this._push(ev);
} }
else { else {
_this.events.push(ev); this.events.push(ev);
} }
}; };
}; }
return Tracer; }
}(stream_1.Readable));
exports.Tracer = Tracer; exports.Tracer = Tracer;
/* /*
* These correspond to the "Async events" in the Trace Events doc. * These correspond to the "Async events" in the Trace Events doc.
@ -15086,7 +15079,7 @@ exports.Tracer = Tracer;
* Dev Note: We don't explicitly assert that correct fields are * Dev Note: We don't explicitly assert that correct fields are
* used for speed (premature optimization alert!). * used for speed (premature optimization alert!).
*/ */
//# sourceMappingURL=trace-event.js.map
/***/ }), /***/ }),
@ -28878,258 +28871,6 @@ function transform(options) {
module.exports.minify = minify; module.exports.minify = minify;
module.exports.transform = transform; module.exports.transform = transform;
/***/ }),
/***/ 7960:
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "__extends": function() { return /* binding */ __extends; },
/* harmony export */ "__assign": function() { return /* binding */ __assign; },
/* harmony export */ "__rest": function() { return /* binding */ __rest; },
/* harmony export */ "__decorate": function() { return /* binding */ __decorate; },
/* harmony export */ "__param": function() { return /* binding */ __param; },
/* harmony export */ "__metadata": function() { return /* binding */ __metadata; },
/* harmony export */ "__awaiter": function() { return /* binding */ __awaiter; },
/* harmony export */ "__generator": function() { return /* binding */ __generator; },
/* harmony export */ "__createBinding": function() { return /* binding */ __createBinding; },
/* harmony export */ "__exportStar": function() { return /* binding */ __exportStar; },
/* harmony export */ "__values": function() { return /* binding */ __values; },
/* harmony export */ "__read": function() { return /* binding */ __read; },
/* harmony export */ "__spread": function() { return /* binding */ __spread; },
/* harmony export */ "__spreadArrays": function() { return /* binding */ __spreadArrays; },
/* harmony export */ "__await": function() { return /* binding */ __await; },
/* harmony export */ "__asyncGenerator": function() { return /* binding */ __asyncGenerator; },
/* harmony export */ "__asyncDelegator": function() { return /* binding */ __asyncDelegator; },
/* harmony export */ "__asyncValues": function() { return /* binding */ __asyncValues; },
/* harmony export */ "__makeTemplateObject": function() { return /* binding */ __makeTemplateObject; },
/* harmony export */ "__importStar": function() { return /* binding */ __importStar; },
/* harmony export */ "__importDefault": function() { return /* binding */ __importDefault; },
/* harmony export */ "__classPrivateFieldGet": function() { return /* binding */ __classPrivateFieldGet; },
/* harmony export */ "__classPrivateFieldSet": function() { return /* binding */ __classPrivateFieldSet; }
/* harmony export */ });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return __assign.apply(this, arguments);
}
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __createBinding(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}
function __exportStar(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
}
function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}
/***/ }), /***/ }),
/***/ 87865: /***/ 87865:
@ -36472,12 +36213,13 @@ class Compilation {
const { fn, additionalAssets, ...remainingTap } = tap; const { fn, additionalAssets, ...remainingTap } = tap;
const additionalAssetsFn = const additionalAssetsFn =
additionalAssets === true ? fn : additionalAssets; additionalAssets === true ? fn : additionalAssets;
let processedAssets = undefined; const processedAssets = additionalAssetsFn ? new WeakSet() : undefined;
switch (type) { switch (type) {
case "sync": case "sync":
if (additionalAssetsFn) { if (additionalAssetsFn) {
this.hooks.processAdditionalAssets.tap(name, assets => { this.hooks.processAdditionalAssets.tap(name, assets => {
if (processedAssets === this.assets) additionalAssetsFn(assets); if (processedAssets.has(this.assets))
additionalAssetsFn(assets);
}); });
} }
return { return {
@ -36489,7 +36231,8 @@ class Compilation {
} catch (e) { } catch (e) {
return callback(e); return callback(e);
} }
processedAssets = this.assets; if (processedAssets !== undefined)
processedAssets.add(this.assets);
const newAssets = popNewAssets(assets); const newAssets = popNewAssets(assets);
if (newAssets !== undefined) { if (newAssets !== undefined) {
this.hooks.processAdditionalAssets.callAsync( this.hooks.processAdditionalAssets.callAsync(
@ -36506,7 +36249,7 @@ class Compilation {
this.hooks.processAdditionalAssets.tapAsync( this.hooks.processAdditionalAssets.tapAsync(
name, name,
(assets, callback) => { (assets, callback) => {
if (processedAssets === this.assets) if (processedAssets.has(this.assets))
return additionalAssetsFn(assets, callback); return additionalAssetsFn(assets, callback);
callback(); callback();
} }
@ -36517,7 +36260,8 @@ class Compilation {
fn: (assets, callback) => { fn: (assets, callback) => {
fn(assets, err => { fn(assets, err => {
if (err) return callback(err); if (err) return callback(err);
processedAssets = this.assets; if (processedAssets !== undefined)
processedAssets.add(this.assets);
const newAssets = popNewAssets(assets); const newAssets = popNewAssets(assets);
if (newAssets !== undefined) { if (newAssets !== undefined) {
this.hooks.processAdditionalAssets.callAsync( this.hooks.processAdditionalAssets.callAsync(
@ -36533,7 +36277,7 @@ class Compilation {
case "promise": case "promise":
if (additionalAssetsFn) { if (additionalAssetsFn) {
this.hooks.processAdditionalAssets.tapPromise(name, assets => { this.hooks.processAdditionalAssets.tapPromise(name, assets => {
if (processedAssets === this.assets) if (processedAssets.has(this.assets))
return additionalAssetsFn(assets); return additionalAssetsFn(assets);
return Promise.resolve(); return Promise.resolve();
}); });
@ -36544,7 +36288,8 @@ class Compilation {
const p = fn(assets); const p = fn(assets);
if (!p || !p.then) return p; if (!p || !p.then) return p;
return p.then(() => { return p.then(() => {
processedAssets = this.assets; if (processedAssets !== undefined)
processedAssets.add(this.assets);
const newAssets = popNewAssets(assets); const newAssets = popNewAssets(assets);
if (newAssets !== undefined) { if (newAssets !== undefined) {
return this.hooks.processAdditionalAssets.promise( return this.hooks.processAdditionalAssets.promise(
@ -40989,6 +40734,8 @@ ${other}`);
} }
}, },
err => { err => {
// Clear map to free up memory
caseInsensitiveMap.clear();
if (err) return callback(err); if (err) return callback(err);
this.hooks.afterEmit.callAsync(compilation, err => { this.hooks.afterEmit.callAsync(compilation, err => {
@ -67461,6 +67208,7 @@ class Watching {
this.compiler = compiler; this.compiler = compiler;
this.running = false; this.running = false;
this._initial = true; this._initial = true;
this._invalidReported = true;
this._needRecords = true; this._needRecords = true;
this.watcher = undefined; this.watcher = undefined;
this.pausedWatcher = undefined; this.pausedWatcher = undefined;
@ -67491,6 +67239,7 @@ class Watching {
}); });
} }
this.invalid = false; this.invalid = false;
this._invalidReported = false;
this.compiler.hooks.watchRun.callAsync(this.compiler, err => { this.compiler.hooks.watchRun.callAsync(this.compiler, err => {
if (err) return this._done(err); if (err) return this._done(err);
const onCompiled = (err, compilation) => { const onCompiled = (err, compilation) => {
@ -67678,7 +67427,10 @@ class Watching {
this._onChange(); this._onChange();
}, },
(fileName, changeTime) => { (fileName, changeTime) => {
this.compiler.hooks.invalid.call(fileName, changeTime); if (!this._invalidReported) {
this._invalidReported = true;
this.compiler.hooks.invalid.call(fileName, changeTime);
}
this._onInvalid(); this._onInvalid();
} }
); );
@ -67692,7 +67444,8 @@ class Watching {
if (callback) { if (callback) {
this.callbacks.push(callback); this.callbacks.push(callback);
} }
if (!this._initial) { if (!this._invalidReported) {
this._invalidReported = true;
this.compiler.hooks.invalid.call(null, Date.now()); this.compiler.hooks.invalid.call(null, Date.now());
} }
this._invalidate(); this._invalidate();
@ -114737,31 +114490,6 @@ const identifyNumber = n => {
* @extends {SerializerMiddleware<DeserializedType, SerializedType>} * @extends {SerializerMiddleware<DeserializedType, SerializedType>}
*/ */
class BinaryMiddleware extends SerializerMiddleware { class BinaryMiddleware extends SerializerMiddleware {
static optimizeSerializedData(data) {
const result = [];
const temp = [];
const flush = () => {
if (temp.length > 0) {
if (temp.length === 1) {
result.push(temp[0]);
} else {
result.push(Buffer.concat(temp));
}
temp.length = 0;
}
};
for (const item of data) {
if (Buffer.isBuffer(item)) {
temp.push(item);
} else {
flush();
result.push(item);
}
}
flush();
return result;
}
/** /**
* @param {DeserializedType} data data * @param {DeserializedType} data data
* @param {Object} context context object * @param {Object} context context object
@ -114785,7 +114513,7 @@ class BinaryMiddleware extends SerializerMiddleware {
/** @type {BufferSerializableType[]} */ /** @type {BufferSerializableType[]} */
const buffers = []; const buffers = [];
let buffersTotalLength = 0; let buffersTotalLength = 0;
const allocate = (bytesNeeded, exact = false) => { const allocate = bytesNeeded => {
if (currentBuffer !== null) { if (currentBuffer !== null) {
if (currentBuffer.length - currentPosition >= bytesNeeded) return; if (currentBuffer.length - currentPosition >= bytesNeeded) return;
flush(); flush();
@ -114794,8 +114522,8 @@ class BinaryMiddleware extends SerializerMiddleware {
currentBuffer = leftOverBuffer; currentBuffer = leftOverBuffer;
leftOverBuffer = null; leftOverBuffer = null;
} else { } else {
currentBuffer = Buffer.allocUnsafe( currentBuffer = Buffer.allocUnsafeSlow(
exact ? bytesNeeded : Math.max(bytesNeeded, buffersTotalLength, 1024) Math.max(bytesNeeded, buffersTotalLength, 16384)
); );
} }
}; };
@ -114887,8 +114615,8 @@ class BinaryMiddleware extends SerializerMiddleware {
for (const l of lengths) { for (const l of lengths) {
writeU32(l); writeU32(l);
} }
flush();
for (const item of serializedData) { for (const item of serializedData) {
flush();
buffers.push(item); buffers.push(item);
} }
} }
@ -115086,11 +114814,19 @@ class BinaryMiddleware extends SerializerMiddleware {
writeU32(n - 260); writeU32(n - 260);
} }
} else if (Buffer.isBuffer(thing)) { } else if (Buffer.isBuffer(thing)) {
allocate(HEADER_SIZE + I32_SIZE, true); if (thing.length < 8192) {
writeU8(BUFFER_HEADER); allocate(HEADER_SIZE + I32_SIZE + thing.length);
writeU32(thing.length); writeU8(BUFFER_HEADER);
flush(); writeU32(thing.length);
buffers.push(thing); thing.copy(currentBuffer, currentPosition);
currentPosition += thing.length;
} else {
allocate(HEADER_SIZE + I32_SIZE);
writeU8(BUFFER_HEADER);
writeU32(thing.length);
flush();
buffers.push(thing);
}
} }
break; break;
} }
@ -135425,34 +135161,6 @@ module.exports = require("vm");;
/******/ } /******/ }
/******/ /******/
/************************************************************************/ /************************************************************************/
/******/ /* webpack/runtime/define property getters */
/******/ !function() {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = function(exports, definition) {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ }();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ !function() {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/node module decorator */ /******/ /* webpack/runtime/node module decorator */
/******/ !function() { /******/ !function() {
/******/ __webpack_require__.nmd = function(module) { /******/ __webpack_require__.nmd = function(module) {