webpack-dev-server 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,2918 +2,27 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ "./node_modules/tapable/lib/AsyncParallelBailHook.js":
6
- /*!***********************************************************!*\
7
- !*** ./node_modules/tapable/lib/AsyncParallelBailHook.js ***!
8
- \***********************************************************/
9
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
10
-
11
- /*
12
- MIT License http://www.opensource.org/licenses/mit-license.php
13
- Author Tobias Koppers @sokra
14
- */
15
-
16
-
17
- function _classCallCheck(instance, Constructor) {
18
- if (!(instance instanceof Constructor)) {
19
- throw new TypeError("Cannot call a class as a function");
20
- }
21
- }
22
- function _defineProperties(target, props) {
23
- for (var i = 0; i < props.length; i++) {
24
- var descriptor = props[i];
25
- descriptor.enumerable = descriptor.enumerable || false;
26
- descriptor.configurable = true;
27
- if ("value" in descriptor) descriptor.writable = true;
28
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
29
- }
30
- }
31
- function _createClass(Constructor, protoProps, staticProps) {
32
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
33
- if (staticProps) _defineProperties(Constructor, staticProps);
34
- Object.defineProperty(Constructor, "prototype", {
35
- writable: false
36
- });
37
- return Constructor;
38
- }
39
- function _toPropertyKey(t) {
40
- var i = _toPrimitive(t, "string");
41
- return "symbol" == typeof i ? i : String(i);
42
- }
43
- function _toPrimitive(t, r) {
44
- if ("object" != typeof t || !t) return t;
45
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
46
- if (void 0 !== e) {
47
- var i = e.call(t, r || "default");
48
- if ("object" != typeof i) return i;
49
- throw new TypeError("@@toPrimitive must return a primitive value.");
50
- }
51
- return ("string" === r ? String : Number)(t);
52
- }
53
- function _callSuper(t, o, e) {
54
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
55
- }
56
- function _possibleConstructorReturn(self, call) {
57
- if (call && (typeof call === "object" || typeof call === "function")) {
58
- return call;
59
- } else if (call !== void 0) {
60
- throw new TypeError("Derived constructors may only return object or undefined");
61
- }
62
- return _assertThisInitialized(self);
63
- }
64
- function _assertThisInitialized(self) {
65
- if (self === void 0) {
66
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
67
- }
68
- return self;
69
- }
70
- function _isNativeReflectConstruct() {
71
- try {
72
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
73
- } catch (t) {}
74
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
75
- return !!t;
76
- })();
77
- }
78
- function _getPrototypeOf(o) {
79
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
80
- return o.__proto__ || Object.getPrototypeOf(o);
81
- };
82
- return _getPrototypeOf(o);
83
- }
84
- function _inherits(subClass, superClass) {
85
- if (typeof superClass !== "function" && superClass !== null) {
86
- throw new TypeError("Super expression must either be null or a function");
87
- }
88
- subClass.prototype = Object.create(superClass && superClass.prototype, {
89
- constructor: {
90
- value: subClass,
91
- writable: true,
92
- configurable: true
93
- }
94
- });
95
- Object.defineProperty(subClass, "prototype", {
96
- writable: false
97
- });
98
- if (superClass) _setPrototypeOf(subClass, superClass);
99
- }
100
- function _setPrototypeOf(o, p) {
101
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
102
- o.__proto__ = p;
103
- return o;
104
- };
105
- return _setPrototypeOf(o, p);
106
- }
107
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
108
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
109
- var AsyncParallelBailHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
110
- _inherits(AsyncParallelBailHookCodeFactory, _HookCodeFactory);
111
- function AsyncParallelBailHookCodeFactory() {
112
- _classCallCheck(this, AsyncParallelBailHookCodeFactory);
113
- return _callSuper(this, AsyncParallelBailHookCodeFactory, arguments);
114
- }
115
- _createClass(AsyncParallelBailHookCodeFactory, [{
116
- key: "content",
117
- value: function content(_ref) {
118
- var onError = _ref.onError,
119
- onResult = _ref.onResult,
120
- onDone = _ref.onDone;
121
- var code = "";
122
- code += "var _results = new Array(".concat(this.options.taps.length, ");\n");
123
- code += "var _checkDone = function() {\n";
124
- code += "for(var i = 0; i < _results.length; i++) {\n";
125
- code += "var item = _results[i];\n";
126
- code += "if(item === undefined) return false;\n";
127
- code += "if(item.result !== undefined) {\n";
128
- code += onResult("item.result");
129
- code += "return true;\n";
130
- code += "}\n";
131
- code += "if(item.error) {\n";
132
- code += onError("item.error");
133
- code += "return true;\n";
134
- code += "}\n";
135
- code += "}\n";
136
- code += "return false;\n";
137
- code += "}\n";
138
- code += this.callTapsParallel({
139
- onError: function onError(i, err, done, doneBreak) {
140
- var code = "";
141
- code += "if(".concat(i, " < _results.length && ((_results.length = ").concat(i + 1, "), (_results[").concat(i, "] = { error: ").concat(err, " }), _checkDone())) {\n");
142
- code += doneBreak(true);
143
- code += "} else {\n";
144
- code += done();
145
- code += "}\n";
146
- return code;
147
- },
148
- onResult: function onResult(i, result, done, doneBreak) {
149
- var code = "";
150
- code += "if(".concat(i, " < _results.length && (").concat(result, " !== undefined && (_results.length = ").concat(i + 1, "), (_results[").concat(i, "] = { result: ").concat(result, " }), _checkDone())) {\n");
151
- code += doneBreak(true);
152
- code += "} else {\n";
153
- code += done();
154
- code += "}\n";
155
- return code;
156
- },
157
- onTap: function onTap(i, run, done, doneBreak) {
158
- var code = "";
159
- if (i > 0) {
160
- code += "if(".concat(i, " >= _results.length) {\n");
161
- code += done();
162
- code += "} else {\n";
163
- }
164
- code += run();
165
- if (i > 0) code += "}\n";
166
- return code;
167
- },
168
- onDone: onDone
169
- });
170
- return code;
171
- }
172
- }]);
173
- return AsyncParallelBailHookCodeFactory;
174
- }(HookCodeFactory);
175
- var factory = new AsyncParallelBailHookCodeFactory();
176
- var COMPILE = function COMPILE(options) {
177
- factory.setup(this, options);
178
- return factory.create(options);
179
- };
180
- function AsyncParallelBailHook() {
181
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
182
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
183
- var hook = new Hook(args, name);
184
- hook.constructor = AsyncParallelBailHook;
185
- hook.compile = COMPILE;
186
- hook._call = undefined;
187
- hook.call = undefined;
188
- return hook;
189
- }
190
- AsyncParallelBailHook.prototype = null;
191
- module.exports = AsyncParallelBailHook;
192
-
193
- /***/ }),
194
-
195
- /***/ "./node_modules/tapable/lib/AsyncParallelHook.js":
196
- /*!*******************************************************!*\
197
- !*** ./node_modules/tapable/lib/AsyncParallelHook.js ***!
198
- \*******************************************************/
199
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
200
-
201
- /*
202
- MIT License http://www.opensource.org/licenses/mit-license.php
203
- Author Tobias Koppers @sokra
204
- */
205
-
206
-
207
- function _classCallCheck(instance, Constructor) {
208
- if (!(instance instanceof Constructor)) {
209
- throw new TypeError("Cannot call a class as a function");
210
- }
211
- }
212
- function _defineProperties(target, props) {
213
- for (var i = 0; i < props.length; i++) {
214
- var descriptor = props[i];
215
- descriptor.enumerable = descriptor.enumerable || false;
216
- descriptor.configurable = true;
217
- if ("value" in descriptor) descriptor.writable = true;
218
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
219
- }
220
- }
221
- function _createClass(Constructor, protoProps, staticProps) {
222
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
223
- if (staticProps) _defineProperties(Constructor, staticProps);
224
- Object.defineProperty(Constructor, "prototype", {
225
- writable: false
226
- });
227
- return Constructor;
228
- }
229
- function _toPropertyKey(t) {
230
- var i = _toPrimitive(t, "string");
231
- return "symbol" == typeof i ? i : String(i);
232
- }
233
- function _toPrimitive(t, r) {
234
- if ("object" != typeof t || !t) return t;
235
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
236
- if (void 0 !== e) {
237
- var i = e.call(t, r || "default");
238
- if ("object" != typeof i) return i;
239
- throw new TypeError("@@toPrimitive must return a primitive value.");
240
- }
241
- return ("string" === r ? String : Number)(t);
242
- }
243
- function _callSuper(t, o, e) {
244
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
245
- }
246
- function _possibleConstructorReturn(self, call) {
247
- if (call && (typeof call === "object" || typeof call === "function")) {
248
- return call;
249
- } else if (call !== void 0) {
250
- throw new TypeError("Derived constructors may only return object or undefined");
251
- }
252
- return _assertThisInitialized(self);
253
- }
254
- function _assertThisInitialized(self) {
255
- if (self === void 0) {
256
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
257
- }
258
- return self;
259
- }
260
- function _isNativeReflectConstruct() {
261
- try {
262
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
263
- } catch (t) {}
264
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
265
- return !!t;
266
- })();
267
- }
268
- function _getPrototypeOf(o) {
269
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
270
- return o.__proto__ || Object.getPrototypeOf(o);
271
- };
272
- return _getPrototypeOf(o);
273
- }
274
- function _inherits(subClass, superClass) {
275
- if (typeof superClass !== "function" && superClass !== null) {
276
- throw new TypeError("Super expression must either be null or a function");
277
- }
278
- subClass.prototype = Object.create(superClass && superClass.prototype, {
279
- constructor: {
280
- value: subClass,
281
- writable: true,
282
- configurable: true
283
- }
284
- });
285
- Object.defineProperty(subClass, "prototype", {
286
- writable: false
287
- });
288
- if (superClass) _setPrototypeOf(subClass, superClass);
289
- }
290
- function _setPrototypeOf(o, p) {
291
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
292
- o.__proto__ = p;
293
- return o;
294
- };
295
- return _setPrototypeOf(o, p);
296
- }
297
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
298
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
299
- var AsyncParallelHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
300
- _inherits(AsyncParallelHookCodeFactory, _HookCodeFactory);
301
- function AsyncParallelHookCodeFactory() {
302
- _classCallCheck(this, AsyncParallelHookCodeFactory);
303
- return _callSuper(this, AsyncParallelHookCodeFactory, arguments);
304
- }
305
- _createClass(AsyncParallelHookCodeFactory, [{
306
- key: "content",
307
- value: function content(_ref) {
308
- var _onError = _ref.onError,
309
- onDone = _ref.onDone;
310
- return this.callTapsParallel({
311
- onError: function onError(i, err, done, doneBreak) {
312
- return _onError(err) + doneBreak(true);
313
- },
314
- onDone: onDone
315
- });
316
- }
317
- }]);
318
- return AsyncParallelHookCodeFactory;
319
- }(HookCodeFactory);
320
- var factory = new AsyncParallelHookCodeFactory();
321
- var COMPILE = function COMPILE(options) {
322
- factory.setup(this, options);
323
- return factory.create(options);
324
- };
325
- function AsyncParallelHook() {
326
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
327
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
328
- var hook = new Hook(args, name);
329
- hook.constructor = AsyncParallelHook;
330
- hook.compile = COMPILE;
331
- hook._call = undefined;
332
- hook.call = undefined;
333
- return hook;
334
- }
335
- AsyncParallelHook.prototype = null;
336
- module.exports = AsyncParallelHook;
337
-
338
- /***/ }),
339
-
340
- /***/ "./node_modules/tapable/lib/AsyncSeriesBailHook.js":
341
- /*!*********************************************************!*\
342
- !*** ./node_modules/tapable/lib/AsyncSeriesBailHook.js ***!
343
- \*********************************************************/
344
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
345
-
346
- /*
347
- MIT License http://www.opensource.org/licenses/mit-license.php
348
- Author Tobias Koppers @sokra
349
- */
350
-
351
-
352
- function _classCallCheck(instance, Constructor) {
353
- if (!(instance instanceof Constructor)) {
354
- throw new TypeError("Cannot call a class as a function");
355
- }
356
- }
357
- function _defineProperties(target, props) {
358
- for (var i = 0; i < props.length; i++) {
359
- var descriptor = props[i];
360
- descriptor.enumerable = descriptor.enumerable || false;
361
- descriptor.configurable = true;
362
- if ("value" in descriptor) descriptor.writable = true;
363
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
364
- }
365
- }
366
- function _createClass(Constructor, protoProps, staticProps) {
367
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
368
- if (staticProps) _defineProperties(Constructor, staticProps);
369
- Object.defineProperty(Constructor, "prototype", {
370
- writable: false
371
- });
372
- return Constructor;
373
- }
374
- function _toPropertyKey(t) {
375
- var i = _toPrimitive(t, "string");
376
- return "symbol" == typeof i ? i : String(i);
377
- }
378
- function _toPrimitive(t, r) {
379
- if ("object" != typeof t || !t) return t;
380
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
381
- if (void 0 !== e) {
382
- var i = e.call(t, r || "default");
383
- if ("object" != typeof i) return i;
384
- throw new TypeError("@@toPrimitive must return a primitive value.");
385
- }
386
- return ("string" === r ? String : Number)(t);
387
- }
388
- function _callSuper(t, o, e) {
389
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
390
- }
391
- function _possibleConstructorReturn(self, call) {
392
- if (call && (typeof call === "object" || typeof call === "function")) {
393
- return call;
394
- } else if (call !== void 0) {
395
- throw new TypeError("Derived constructors may only return object or undefined");
396
- }
397
- return _assertThisInitialized(self);
398
- }
399
- function _assertThisInitialized(self) {
400
- if (self === void 0) {
401
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
402
- }
403
- return self;
404
- }
405
- function _isNativeReflectConstruct() {
406
- try {
407
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
408
- } catch (t) {}
409
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
410
- return !!t;
411
- })();
412
- }
413
- function _getPrototypeOf(o) {
414
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
415
- return o.__proto__ || Object.getPrototypeOf(o);
416
- };
417
- return _getPrototypeOf(o);
418
- }
419
- function _inherits(subClass, superClass) {
420
- if (typeof superClass !== "function" && superClass !== null) {
421
- throw new TypeError("Super expression must either be null or a function");
422
- }
423
- subClass.prototype = Object.create(superClass && superClass.prototype, {
424
- constructor: {
425
- value: subClass,
426
- writable: true,
427
- configurable: true
428
- }
429
- });
430
- Object.defineProperty(subClass, "prototype", {
431
- writable: false
432
- });
433
- if (superClass) _setPrototypeOf(subClass, superClass);
434
- }
435
- function _setPrototypeOf(o, p) {
436
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
437
- o.__proto__ = p;
438
- return o;
439
- };
440
- return _setPrototypeOf(o, p);
441
- }
442
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
443
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
444
- var AsyncSeriesBailHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
445
- _inherits(AsyncSeriesBailHookCodeFactory, _HookCodeFactory);
446
- function AsyncSeriesBailHookCodeFactory() {
447
- _classCallCheck(this, AsyncSeriesBailHookCodeFactory);
448
- return _callSuper(this, AsyncSeriesBailHookCodeFactory, arguments);
449
- }
450
- _createClass(AsyncSeriesBailHookCodeFactory, [{
451
- key: "content",
452
- value: function content(_ref) {
453
- var _onError = _ref.onError,
454
- _onResult = _ref.onResult,
455
- resultReturns = _ref.resultReturns,
456
- onDone = _ref.onDone;
457
- return this.callTapsSeries({
458
- onError: function onError(i, err, next, doneBreak) {
459
- return _onError(err) + doneBreak(true);
460
- },
461
- onResult: function onResult(i, result, next) {
462
- return "if(".concat(result, " !== undefined) {\n").concat(_onResult(result), "\n} else {\n").concat(next(), "}\n");
463
- },
464
- resultReturns: resultReturns,
465
- onDone: onDone
466
- });
467
- }
468
- }]);
469
- return AsyncSeriesBailHookCodeFactory;
470
- }(HookCodeFactory);
471
- var factory = new AsyncSeriesBailHookCodeFactory();
472
- var COMPILE = function COMPILE(options) {
473
- factory.setup(this, options);
474
- return factory.create(options);
475
- };
476
- function AsyncSeriesBailHook() {
477
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
478
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
479
- var hook = new Hook(args, name);
480
- hook.constructor = AsyncSeriesBailHook;
481
- hook.compile = COMPILE;
482
- hook._call = undefined;
483
- hook.call = undefined;
484
- return hook;
485
- }
486
- AsyncSeriesBailHook.prototype = null;
487
- module.exports = AsyncSeriesBailHook;
488
-
489
- /***/ }),
490
-
491
- /***/ "./node_modules/tapable/lib/AsyncSeriesHook.js":
492
- /*!*****************************************************!*\
493
- !*** ./node_modules/tapable/lib/AsyncSeriesHook.js ***!
494
- \*****************************************************/
495
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
496
-
497
- /*
498
- MIT License http://www.opensource.org/licenses/mit-license.php
499
- Author Tobias Koppers @sokra
500
- */
501
-
502
-
503
- function _classCallCheck(instance, Constructor) {
504
- if (!(instance instanceof Constructor)) {
505
- throw new TypeError("Cannot call a class as a function");
506
- }
507
- }
508
- function _defineProperties(target, props) {
509
- for (var i = 0; i < props.length; i++) {
510
- var descriptor = props[i];
511
- descriptor.enumerable = descriptor.enumerable || false;
512
- descriptor.configurable = true;
513
- if ("value" in descriptor) descriptor.writable = true;
514
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
515
- }
516
- }
517
- function _createClass(Constructor, protoProps, staticProps) {
518
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
519
- if (staticProps) _defineProperties(Constructor, staticProps);
520
- Object.defineProperty(Constructor, "prototype", {
521
- writable: false
522
- });
523
- return Constructor;
524
- }
525
- function _toPropertyKey(t) {
526
- var i = _toPrimitive(t, "string");
527
- return "symbol" == typeof i ? i : String(i);
528
- }
529
- function _toPrimitive(t, r) {
530
- if ("object" != typeof t || !t) return t;
531
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
532
- if (void 0 !== e) {
533
- var i = e.call(t, r || "default");
534
- if ("object" != typeof i) return i;
535
- throw new TypeError("@@toPrimitive must return a primitive value.");
536
- }
537
- return ("string" === r ? String : Number)(t);
538
- }
539
- function _callSuper(t, o, e) {
540
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
541
- }
542
- function _possibleConstructorReturn(self, call) {
543
- if (call && (typeof call === "object" || typeof call === "function")) {
544
- return call;
545
- } else if (call !== void 0) {
546
- throw new TypeError("Derived constructors may only return object or undefined");
547
- }
548
- return _assertThisInitialized(self);
549
- }
550
- function _assertThisInitialized(self) {
551
- if (self === void 0) {
552
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
553
- }
554
- return self;
555
- }
556
- function _isNativeReflectConstruct() {
557
- try {
558
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
559
- } catch (t) {}
560
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
561
- return !!t;
562
- })();
563
- }
564
- function _getPrototypeOf(o) {
565
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
566
- return o.__proto__ || Object.getPrototypeOf(o);
567
- };
568
- return _getPrototypeOf(o);
569
- }
570
- function _inherits(subClass, superClass) {
571
- if (typeof superClass !== "function" && superClass !== null) {
572
- throw new TypeError("Super expression must either be null or a function");
573
- }
574
- subClass.prototype = Object.create(superClass && superClass.prototype, {
575
- constructor: {
576
- value: subClass,
577
- writable: true,
578
- configurable: true
579
- }
580
- });
581
- Object.defineProperty(subClass, "prototype", {
582
- writable: false
583
- });
584
- if (superClass) _setPrototypeOf(subClass, superClass);
585
- }
586
- function _setPrototypeOf(o, p) {
587
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
588
- o.__proto__ = p;
589
- return o;
590
- };
591
- return _setPrototypeOf(o, p);
592
- }
593
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
594
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
595
- var AsyncSeriesHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
596
- _inherits(AsyncSeriesHookCodeFactory, _HookCodeFactory);
597
- function AsyncSeriesHookCodeFactory() {
598
- _classCallCheck(this, AsyncSeriesHookCodeFactory);
599
- return _callSuper(this, AsyncSeriesHookCodeFactory, arguments);
600
- }
601
- _createClass(AsyncSeriesHookCodeFactory, [{
602
- key: "content",
603
- value: function content(_ref) {
604
- var _onError = _ref.onError,
605
- onDone = _ref.onDone;
606
- return this.callTapsSeries({
607
- onError: function onError(i, err, next, doneBreak) {
608
- return _onError(err) + doneBreak(true);
609
- },
610
- onDone: onDone
611
- });
612
- }
613
- }]);
614
- return AsyncSeriesHookCodeFactory;
615
- }(HookCodeFactory);
616
- var factory = new AsyncSeriesHookCodeFactory();
617
- var COMPILE = function COMPILE(options) {
618
- factory.setup(this, options);
619
- return factory.create(options);
620
- };
621
- function AsyncSeriesHook() {
622
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
623
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
624
- var hook = new Hook(args, name);
625
- hook.constructor = AsyncSeriesHook;
626
- hook.compile = COMPILE;
627
- hook._call = undefined;
628
- hook.call = undefined;
629
- return hook;
630
- }
631
- AsyncSeriesHook.prototype = null;
632
- module.exports = AsyncSeriesHook;
633
-
634
- /***/ }),
635
-
636
- /***/ "./node_modules/tapable/lib/AsyncSeriesLoopHook.js":
637
- /*!*********************************************************!*\
638
- !*** ./node_modules/tapable/lib/AsyncSeriesLoopHook.js ***!
639
- \*********************************************************/
640
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
641
-
642
- /*
643
- MIT License http://www.opensource.org/licenses/mit-license.php
644
- Author Tobias Koppers @sokra
645
- */
646
-
647
-
648
- function _classCallCheck(instance, Constructor) {
649
- if (!(instance instanceof Constructor)) {
650
- throw new TypeError("Cannot call a class as a function");
651
- }
652
- }
653
- function _defineProperties(target, props) {
654
- for (var i = 0; i < props.length; i++) {
655
- var descriptor = props[i];
656
- descriptor.enumerable = descriptor.enumerable || false;
657
- descriptor.configurable = true;
658
- if ("value" in descriptor) descriptor.writable = true;
659
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
660
- }
661
- }
662
- function _createClass(Constructor, protoProps, staticProps) {
663
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
664
- if (staticProps) _defineProperties(Constructor, staticProps);
665
- Object.defineProperty(Constructor, "prototype", {
666
- writable: false
667
- });
668
- return Constructor;
669
- }
670
- function _toPropertyKey(t) {
671
- var i = _toPrimitive(t, "string");
672
- return "symbol" == typeof i ? i : String(i);
673
- }
674
- function _toPrimitive(t, r) {
675
- if ("object" != typeof t || !t) return t;
676
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
677
- if (void 0 !== e) {
678
- var i = e.call(t, r || "default");
679
- if ("object" != typeof i) return i;
680
- throw new TypeError("@@toPrimitive must return a primitive value.");
681
- }
682
- return ("string" === r ? String : Number)(t);
683
- }
684
- function _callSuper(t, o, e) {
685
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
686
- }
687
- function _possibleConstructorReturn(self, call) {
688
- if (call && (typeof call === "object" || typeof call === "function")) {
689
- return call;
690
- } else if (call !== void 0) {
691
- throw new TypeError("Derived constructors may only return object or undefined");
692
- }
693
- return _assertThisInitialized(self);
694
- }
695
- function _assertThisInitialized(self) {
696
- if (self === void 0) {
697
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
698
- }
699
- return self;
700
- }
701
- function _isNativeReflectConstruct() {
702
- try {
703
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
704
- } catch (t) {}
705
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
706
- return !!t;
707
- })();
708
- }
709
- function _getPrototypeOf(o) {
710
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
711
- return o.__proto__ || Object.getPrototypeOf(o);
712
- };
713
- return _getPrototypeOf(o);
714
- }
715
- function _inherits(subClass, superClass) {
716
- if (typeof superClass !== "function" && superClass !== null) {
717
- throw new TypeError("Super expression must either be null or a function");
718
- }
719
- subClass.prototype = Object.create(superClass && superClass.prototype, {
720
- constructor: {
721
- value: subClass,
722
- writable: true,
723
- configurable: true
724
- }
725
- });
726
- Object.defineProperty(subClass, "prototype", {
727
- writable: false
728
- });
729
- if (superClass) _setPrototypeOf(subClass, superClass);
730
- }
731
- function _setPrototypeOf(o, p) {
732
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
733
- o.__proto__ = p;
734
- return o;
735
- };
736
- return _setPrototypeOf(o, p);
737
- }
738
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
739
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
740
- var AsyncSeriesLoopHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
741
- _inherits(AsyncSeriesLoopHookCodeFactory, _HookCodeFactory);
742
- function AsyncSeriesLoopHookCodeFactory() {
743
- _classCallCheck(this, AsyncSeriesLoopHookCodeFactory);
744
- return _callSuper(this, AsyncSeriesLoopHookCodeFactory, arguments);
745
- }
746
- _createClass(AsyncSeriesLoopHookCodeFactory, [{
747
- key: "content",
748
- value: function content(_ref) {
749
- var _onError = _ref.onError,
750
- onDone = _ref.onDone;
751
- return this.callTapsLooping({
752
- onError: function onError(i, err, next, doneBreak) {
753
- return _onError(err) + doneBreak(true);
754
- },
755
- onDone: onDone
756
- });
757
- }
758
- }]);
759
- return AsyncSeriesLoopHookCodeFactory;
760
- }(HookCodeFactory);
761
- var factory = new AsyncSeriesLoopHookCodeFactory();
762
- var COMPILE = function COMPILE(options) {
763
- factory.setup(this, options);
764
- return factory.create(options);
765
- };
766
- function AsyncSeriesLoopHook() {
767
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
768
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
769
- var hook = new Hook(args, name);
770
- hook.constructor = AsyncSeriesLoopHook;
771
- hook.compile = COMPILE;
772
- hook._call = undefined;
773
- hook.call = undefined;
774
- return hook;
775
- }
776
- AsyncSeriesLoopHook.prototype = null;
777
- module.exports = AsyncSeriesLoopHook;
778
-
779
- /***/ }),
780
-
781
- /***/ "./node_modules/tapable/lib/AsyncSeriesWaterfallHook.js":
782
- /*!**************************************************************!*\
783
- !*** ./node_modules/tapable/lib/AsyncSeriesWaterfallHook.js ***!
784
- \**************************************************************/
785
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
786
-
787
- /*
788
- MIT License http://www.opensource.org/licenses/mit-license.php
789
- Author Tobias Koppers @sokra
790
- */
791
-
792
-
793
- function _classCallCheck(instance, Constructor) {
794
- if (!(instance instanceof Constructor)) {
795
- throw new TypeError("Cannot call a class as a function");
796
- }
797
- }
798
- function _defineProperties(target, props) {
799
- for (var i = 0; i < props.length; i++) {
800
- var descriptor = props[i];
801
- descriptor.enumerable = descriptor.enumerable || false;
802
- descriptor.configurable = true;
803
- if ("value" in descriptor) descriptor.writable = true;
804
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
805
- }
806
- }
807
- function _createClass(Constructor, protoProps, staticProps) {
808
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
809
- if (staticProps) _defineProperties(Constructor, staticProps);
810
- Object.defineProperty(Constructor, "prototype", {
811
- writable: false
812
- });
813
- return Constructor;
814
- }
815
- function _toPropertyKey(t) {
816
- var i = _toPrimitive(t, "string");
817
- return "symbol" == typeof i ? i : String(i);
818
- }
819
- function _toPrimitive(t, r) {
820
- if ("object" != typeof t || !t) return t;
821
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
822
- if (void 0 !== e) {
823
- var i = e.call(t, r || "default");
824
- if ("object" != typeof i) return i;
825
- throw new TypeError("@@toPrimitive must return a primitive value.");
826
- }
827
- return ("string" === r ? String : Number)(t);
828
- }
829
- function _callSuper(t, o, e) {
830
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
831
- }
832
- function _possibleConstructorReturn(self, call) {
833
- if (call && (typeof call === "object" || typeof call === "function")) {
834
- return call;
835
- } else if (call !== void 0) {
836
- throw new TypeError("Derived constructors may only return object or undefined");
837
- }
838
- return _assertThisInitialized(self);
839
- }
840
- function _assertThisInitialized(self) {
841
- if (self === void 0) {
842
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
843
- }
844
- return self;
845
- }
846
- function _isNativeReflectConstruct() {
847
- try {
848
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
849
- } catch (t) {}
850
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
851
- return !!t;
852
- })();
853
- }
854
- function _getPrototypeOf(o) {
855
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
856
- return o.__proto__ || Object.getPrototypeOf(o);
857
- };
858
- return _getPrototypeOf(o);
859
- }
860
- function _inherits(subClass, superClass) {
861
- if (typeof superClass !== "function" && superClass !== null) {
862
- throw new TypeError("Super expression must either be null or a function");
863
- }
864
- subClass.prototype = Object.create(superClass && superClass.prototype, {
865
- constructor: {
866
- value: subClass,
867
- writable: true,
868
- configurable: true
869
- }
870
- });
871
- Object.defineProperty(subClass, "prototype", {
872
- writable: false
873
- });
874
- if (superClass) _setPrototypeOf(subClass, superClass);
875
- }
876
- function _setPrototypeOf(o, p) {
877
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
878
- o.__proto__ = p;
879
- return o;
880
- };
881
- return _setPrototypeOf(o, p);
882
- }
883
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
884
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
885
- var AsyncSeriesWaterfallHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
886
- _inherits(AsyncSeriesWaterfallHookCodeFactory, _HookCodeFactory);
887
- function AsyncSeriesWaterfallHookCodeFactory() {
888
- _classCallCheck(this, AsyncSeriesWaterfallHookCodeFactory);
889
- return _callSuper(this, AsyncSeriesWaterfallHookCodeFactory, arguments);
890
- }
891
- _createClass(AsyncSeriesWaterfallHookCodeFactory, [{
892
- key: "content",
893
- value: function content(_ref) {
894
- var _this = this;
895
- var _onError = _ref.onError,
896
- onResult = _ref.onResult,
897
- onDone = _ref.onDone;
898
- return this.callTapsSeries({
899
- onError: function onError(i, err, next, doneBreak) {
900
- return _onError(err) + doneBreak(true);
901
- },
902
- onResult: function onResult(i, result, next) {
903
- var code = "";
904
- code += "if(".concat(result, " !== undefined) {\n");
905
- code += "".concat(_this._args[0], " = ").concat(result, ";\n");
906
- code += "}\n";
907
- code += next();
908
- return code;
909
- },
910
- onDone: function onDone() {
911
- return onResult(_this._args[0]);
912
- }
913
- });
914
- }
915
- }]);
916
- return AsyncSeriesWaterfallHookCodeFactory;
917
- }(HookCodeFactory);
918
- var factory = new AsyncSeriesWaterfallHookCodeFactory();
919
- var COMPILE = function COMPILE(options) {
920
- factory.setup(this, options);
921
- return factory.create(options);
922
- };
923
- function AsyncSeriesWaterfallHook() {
924
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
925
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
926
- if (args.length < 1) throw new Error("Waterfall hooks must have at least one argument");
927
- var hook = new Hook(args, name);
928
- hook.constructor = AsyncSeriesWaterfallHook;
929
- hook.compile = COMPILE;
930
- hook._call = undefined;
931
- hook.call = undefined;
932
- return hook;
933
- }
934
- AsyncSeriesWaterfallHook.prototype = null;
935
- module.exports = AsyncSeriesWaterfallHook;
936
-
937
- /***/ }),
938
-
939
- /***/ "./node_modules/tapable/lib/Hook.js":
940
- /*!******************************************!*\
941
- !*** ./node_modules/tapable/lib/Hook.js ***!
942
- \******************************************/
943
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
944
-
945
- /*
946
- MIT License http://www.opensource.org/licenses/mit-license.php
947
- Author Tobias Koppers @sokra
948
- */
949
-
950
-
951
- function _createForOfIteratorHelper(o, allowArrayLike) {
952
- var it = typeof (typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }) !== "undefined" && o[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).iterator] || o["@@iterator"];
953
- if (!it) {
954
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
955
- if (it) o = it;
956
- var i = 0;
957
- var F = function F() {};
958
- return {
959
- s: F,
960
- n: function n() {
961
- if (i >= o.length) return {
962
- done: true
963
- };
964
- return {
965
- done: false,
966
- value: o[i++]
967
- };
968
- },
969
- e: function e(_e) {
970
- throw _e;
971
- },
972
- f: F
973
- };
974
- }
975
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
976
- }
977
- var normalCompletion = true,
978
- didErr = false,
979
- err;
980
- return {
981
- s: function s() {
982
- it = it.call(o);
983
- },
984
- n: function n() {
985
- var step = it.next();
986
- normalCompletion = step.done;
987
- return step;
988
- },
989
- e: function e(_e2) {
990
- didErr = true;
991
- err = _e2;
992
- },
993
- f: function f() {
994
- try {
995
- if (!normalCompletion && it.return != null) it.return();
996
- } finally {
997
- if (didErr) throw err;
998
- }
999
- }
1000
- };
1001
- }
1002
- function _unsupportedIterableToArray(o, minLen) {
1003
- if (!o) return;
1004
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1005
- var n = Object.prototype.toString.call(o).slice(8, -1);
1006
- if (n === "Object" && o.constructor) n = o.constructor.name;
1007
- if (n === "Map" || n === "Set") return Array.from(o);
1008
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1009
- }
1010
- function _arrayLikeToArray(arr, len) {
1011
- if (len == null || len > arr.length) len = arr.length;
1012
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1013
- return arr2;
1014
- }
1015
- function _extends() {
1016
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1017
- for (var i = 1; i < arguments.length; i++) {
1018
- var source = arguments[i];
1019
- for (var key in source) {
1020
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1021
- target[key] = source[key];
1022
- }
1023
- }
1024
- }
1025
- return target;
1026
- };
1027
- return _extends.apply(this, arguments);
1028
- }
1029
- function _classCallCheck(instance, Constructor) {
1030
- if (!(instance instanceof Constructor)) {
1031
- throw new TypeError("Cannot call a class as a function");
1032
- }
1033
- }
1034
- function _defineProperties(target, props) {
1035
- for (var i = 0; i < props.length; i++) {
1036
- var descriptor = props[i];
1037
- descriptor.enumerable = descriptor.enumerable || false;
1038
- descriptor.configurable = true;
1039
- if ("value" in descriptor) descriptor.writable = true;
1040
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1041
- }
1042
- }
1043
- function _createClass(Constructor, protoProps, staticProps) {
1044
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1045
- if (staticProps) _defineProperties(Constructor, staticProps);
1046
- Object.defineProperty(Constructor, "prototype", {
1047
- writable: false
1048
- });
1049
- return Constructor;
1050
- }
1051
- function _toPropertyKey(t) {
1052
- var i = _toPrimitive(t, "string");
1053
- return "symbol" == typeof i ? i : String(i);
1054
- }
1055
- function _toPrimitive(t, r) {
1056
- if ("object" != typeof t || !t) return t;
1057
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
1058
- if (void 0 !== e) {
1059
- var i = e.call(t, r || "default");
1060
- if ("object" != typeof i) return i;
1061
- throw new TypeError("@@toPrimitive must return a primitive value.");
1062
- }
1063
- return ("string" === r ? String : Number)(t);
1064
- }
1065
- var util = __webpack_require__(/*! util */ "./node_modules/tapable/lib/util-browser.js");
1066
- var deprecateContext = util.deprecate(function () {}, "Hook.context is deprecated and will be removed");
1067
- var CALL_DELEGATE = function CALL_DELEGATE() {
1068
- this.call = this._createCall("sync");
1069
- return this.call.apply(this, arguments);
1070
- };
1071
- var CALL_ASYNC_DELEGATE = function CALL_ASYNC_DELEGATE() {
1072
- this.callAsync = this._createCall("async");
1073
- return this.callAsync.apply(this, arguments);
1074
- };
1075
- var PROMISE_DELEGATE = function PROMISE_DELEGATE() {
1076
- this.promise = this._createCall("promise");
1077
- return this.promise.apply(this, arguments);
1078
- };
1079
- var Hook = /*#__PURE__*/function () {
1080
- function Hook() {
1081
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1082
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
1083
- _classCallCheck(this, Hook);
1084
- this._args = args;
1085
- this.name = name;
1086
- this.taps = [];
1087
- this.interceptors = [];
1088
- this._call = CALL_DELEGATE;
1089
- this.call = CALL_DELEGATE;
1090
- this._callAsync = CALL_ASYNC_DELEGATE;
1091
- this.callAsync = CALL_ASYNC_DELEGATE;
1092
- this._promise = PROMISE_DELEGATE;
1093
- this.promise = PROMISE_DELEGATE;
1094
- this._x = undefined;
1095
- this.compile = this.compile;
1096
- this.tap = this.tap;
1097
- this.tapAsync = this.tapAsync;
1098
- this.tapPromise = this.tapPromise;
1099
- }
1100
- _createClass(Hook, [{
1101
- key: "compile",
1102
- value: function compile(options) {
1103
- throw new Error("Abstract: should be overridden");
1104
- }
1105
- }, {
1106
- key: "_createCall",
1107
- value: function _createCall(type) {
1108
- return this.compile({
1109
- taps: this.taps,
1110
- interceptors: this.interceptors,
1111
- args: this._args,
1112
- type: type
1113
- });
1114
- }
1115
- }, {
1116
- key: "_tap",
1117
- value: function _tap(type, options, fn) {
1118
- if (typeof options === "string") {
1119
- options = {
1120
- name: options.trim()
1121
- };
1122
- } else if (typeof options !== "object" || options === null) {
1123
- throw new Error("Invalid tap options");
1124
- }
1125
- if (typeof options.name !== "string" || options.name === "") {
1126
- throw new Error("Missing name for tap");
1127
- }
1128
- if (typeof options.context !== "undefined") {
1129
- deprecateContext();
1130
- }
1131
- options = _extends({
1132
- type: type,
1133
- fn: fn
1134
- }, options);
1135
- options = this._runRegisterInterceptors(options);
1136
- this._insert(options);
1137
- }
1138
- }, {
1139
- key: "tap",
1140
- value: function tap(options, fn) {
1141
- this._tap("sync", options, fn);
1142
- }
1143
- }, {
1144
- key: "tapAsync",
1145
- value: function tapAsync(options, fn) {
1146
- this._tap("async", options, fn);
1147
- }
1148
- }, {
1149
- key: "tapPromise",
1150
- value: function tapPromise(options, fn) {
1151
- this._tap("promise", options, fn);
1152
- }
1153
- }, {
1154
- key: "_runRegisterInterceptors",
1155
- value: function _runRegisterInterceptors(options) {
1156
- var _iterator = _createForOfIteratorHelper(this.interceptors),
1157
- _step;
1158
- try {
1159
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
1160
- var interceptor = _step.value;
1161
- if (interceptor.register) {
1162
- var newOptions = interceptor.register(options);
1163
- if (newOptions !== undefined) {
1164
- options = newOptions;
1165
- }
1166
- }
1167
- }
1168
- } catch (err) {
1169
- _iterator.e(err);
1170
- } finally {
1171
- _iterator.f();
1172
- }
1173
- return options;
1174
- }
1175
- }, {
1176
- key: "withOptions",
1177
- value: function withOptions(options) {
1178
- var _this = this;
1179
- var mergeOptions = function mergeOptions(opt) {
1180
- return _extends({}, options, typeof opt === "string" ? {
1181
- name: opt
1182
- } : opt);
1183
- };
1184
- return {
1185
- name: this.name,
1186
- tap: function tap(opt, fn) {
1187
- return _this.tap(mergeOptions(opt), fn);
1188
- },
1189
- tapAsync: function tapAsync(opt, fn) {
1190
- return _this.tapAsync(mergeOptions(opt), fn);
1191
- },
1192
- tapPromise: function tapPromise(opt, fn) {
1193
- return _this.tapPromise(mergeOptions(opt), fn);
1194
- },
1195
- intercept: function intercept(interceptor) {
1196
- return _this.intercept(interceptor);
1197
- },
1198
- isUsed: function isUsed() {
1199
- return _this.isUsed();
1200
- },
1201
- withOptions: function withOptions(opt) {
1202
- return _this.withOptions(mergeOptions(opt));
1203
- }
1204
- };
1205
- }
1206
- }, {
1207
- key: "isUsed",
1208
- value: function isUsed() {
1209
- return this.taps.length > 0 || this.interceptors.length > 0;
1210
- }
1211
- }, {
1212
- key: "intercept",
1213
- value: function intercept(interceptor) {
1214
- this._resetCompilation();
1215
- this.interceptors.push(_extends({}, interceptor));
1216
- if (interceptor.register) {
1217
- for (var i = 0; i < this.taps.length; i++) {
1218
- this.taps[i] = interceptor.register(this.taps[i]);
1219
- }
1220
- }
1221
- }
1222
- }, {
1223
- key: "_resetCompilation",
1224
- value: function _resetCompilation() {
1225
- this.call = this._call;
1226
- this.callAsync = this._callAsync;
1227
- this.promise = this._promise;
1228
- }
1229
- }, {
1230
- key: "_insert",
1231
- value: function _insert(item) {
1232
- this._resetCompilation();
1233
- var before;
1234
- if (typeof item.before === "string") {
1235
- before = new Set([item.before]);
1236
- } else if (Array.isArray(item.before)) {
1237
- before = new Set(item.before);
1238
- }
1239
- var stage = 0;
1240
- if (typeof item.stage === "number") {
1241
- stage = item.stage;
1242
- }
1243
- var i = this.taps.length;
1244
- while (i > 0) {
1245
- i--;
1246
- var x = this.taps[i];
1247
- this.taps[i + 1] = x;
1248
- var xStage = x.stage || 0;
1249
- if (before) {
1250
- if (before.has(x.name)) {
1251
- before.delete(x.name);
1252
- continue;
1253
- }
1254
- if (before.size > 0) {
1255
- continue;
1256
- }
1257
- }
1258
- if (xStage > stage) {
1259
- continue;
1260
- }
1261
- i++;
1262
- break;
1263
- }
1264
- this.taps[i] = item;
1265
- }
1266
- }]);
1267
- return Hook;
1268
- }();
1269
- Object.setPrototypeOf(Hook.prototype, null);
1270
- module.exports = Hook;
1271
-
1272
- /***/ }),
1273
-
1274
- /***/ "./node_modules/tapable/lib/HookCodeFactory.js":
1275
- /*!*****************************************************!*\
1276
- !*** ./node_modules/tapable/lib/HookCodeFactory.js ***!
1277
- \*****************************************************/
1278
- /***/ (function(module) {
1279
-
1280
- /*
1281
- MIT License http://www.opensource.org/licenses/mit-license.php
1282
- Author Tobias Koppers @sokra
1283
- */
1284
-
1285
-
1286
- function _createForOfIteratorHelper(o, allowArrayLike) {
1287
- var it = typeof (typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }) !== "undefined" && o[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).iterator] || o["@@iterator"];
1288
- if (!it) {
1289
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
1290
- if (it) o = it;
1291
- var i = 0;
1292
- var F = function F() {};
1293
- return {
1294
- s: F,
1295
- n: function n() {
1296
- if (i >= o.length) return {
1297
- done: true
1298
- };
1299
- return {
1300
- done: false,
1301
- value: o[i++]
1302
- };
1303
- },
1304
- e: function e(_e) {
1305
- throw _e;
1306
- },
1307
- f: F
1308
- };
1309
- }
1310
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1311
- }
1312
- var normalCompletion = true,
1313
- didErr = false,
1314
- err;
1315
- return {
1316
- s: function s() {
1317
- it = it.call(o);
1318
- },
1319
- n: function n() {
1320
- var step = it.next();
1321
- normalCompletion = step.done;
1322
- return step;
1323
- },
1324
- e: function e(_e2) {
1325
- didErr = true;
1326
- err = _e2;
1327
- },
1328
- f: function f() {
1329
- try {
1330
- if (!normalCompletion && it.return != null) it.return();
1331
- } finally {
1332
- if (didErr) throw err;
1333
- }
1334
- }
1335
- };
1336
- }
1337
- function _unsupportedIterableToArray(o, minLen) {
1338
- if (!o) return;
1339
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1340
- var n = Object.prototype.toString.call(o).slice(8, -1);
1341
- if (n === "Object" && o.constructor) n = o.constructor.name;
1342
- if (n === "Map" || n === "Set") return Array.from(o);
1343
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1344
- }
1345
- function _arrayLikeToArray(arr, len) {
1346
- if (len == null || len > arr.length) len = arr.length;
1347
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1348
- return arr2;
1349
- }
1350
- function _extends() {
1351
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1352
- for (var i = 1; i < arguments.length; i++) {
1353
- var source = arguments[i];
1354
- for (var key in source) {
1355
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1356
- target[key] = source[key];
1357
- }
1358
- }
1359
- }
1360
- return target;
1361
- };
1362
- return _extends.apply(this, arguments);
1363
- }
1364
- function _classCallCheck(instance, Constructor) {
1365
- if (!(instance instanceof Constructor)) {
1366
- throw new TypeError("Cannot call a class as a function");
1367
- }
1368
- }
1369
- function _defineProperties(target, props) {
1370
- for (var i = 0; i < props.length; i++) {
1371
- var descriptor = props[i];
1372
- descriptor.enumerable = descriptor.enumerable || false;
1373
- descriptor.configurable = true;
1374
- if ("value" in descriptor) descriptor.writable = true;
1375
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1376
- }
1377
- }
1378
- function _createClass(Constructor, protoProps, staticProps) {
1379
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1380
- if (staticProps) _defineProperties(Constructor, staticProps);
1381
- Object.defineProperty(Constructor, "prototype", {
1382
- writable: false
1383
- });
1384
- return Constructor;
1385
- }
1386
- function _toPropertyKey(t) {
1387
- var i = _toPrimitive(t, "string");
1388
- return "symbol" == typeof i ? i : String(i);
1389
- }
1390
- function _toPrimitive(t, r) {
1391
- if ("object" != typeof t || !t) return t;
1392
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
1393
- if (void 0 !== e) {
1394
- var i = e.call(t, r || "default");
1395
- if ("object" != typeof i) return i;
1396
- throw new TypeError("@@toPrimitive must return a primitive value.");
1397
- }
1398
- return ("string" === r ? String : Number)(t);
1399
- }
1400
- var HookCodeFactory = /*#__PURE__*/function () {
1401
- function HookCodeFactory(config) {
1402
- _classCallCheck(this, HookCodeFactory);
1403
- this.config = config;
1404
- this.options = undefined;
1405
- this._args = undefined;
1406
- }
1407
- _createClass(HookCodeFactory, [{
1408
- key: "create",
1409
- value: function create(options) {
1410
- this.init(options);
1411
- var fn;
1412
- switch (this.options.type) {
1413
- case "sync":
1414
- fn = new Function(this.args(), '"use strict";\n' + this.header() + this.contentWithInterceptors({
1415
- onError: function onError(err) {
1416
- return "throw ".concat(err, ";\n");
1417
- },
1418
- onResult: function onResult(result) {
1419
- return "return ".concat(result, ";\n");
1420
- },
1421
- resultReturns: true,
1422
- onDone: function onDone() {
1423
- return "";
1424
- },
1425
- rethrowIfPossible: true
1426
- }));
1427
- break;
1428
- case "async":
1429
- fn = new Function(this.args({
1430
- after: "_callback"
1431
- }), '"use strict";\n' + this.header() + this.contentWithInterceptors({
1432
- onError: function onError(err) {
1433
- return "_callback(".concat(err, ");\n");
1434
- },
1435
- onResult: function onResult(result) {
1436
- return "_callback(null, ".concat(result, ");\n");
1437
- },
1438
- onDone: function onDone() {
1439
- return "_callback();\n";
1440
- }
1441
- }));
1442
- break;
1443
- case "promise":
1444
- var errorHelperUsed = false;
1445
- var content = this.contentWithInterceptors({
1446
- onError: function onError(err) {
1447
- errorHelperUsed = true;
1448
- return "_error(".concat(err, ");\n");
1449
- },
1450
- onResult: function onResult(result) {
1451
- return "_resolve(".concat(result, ");\n");
1452
- },
1453
- onDone: function onDone() {
1454
- return "_resolve();\n";
1455
- }
1456
- });
1457
- var code = "";
1458
- code += '"use strict";\n';
1459
- code += this.header();
1460
- code += "return new Promise((function(_resolve, _reject) {\n";
1461
- if (errorHelperUsed) {
1462
- code += "var _sync = true;\n";
1463
- code += "function _error(_err) {\n";
1464
- code += "if(_sync)\n";
1465
- code += "_resolve(Promise.resolve().then((function() { throw _err; })));\n";
1466
- code += "else\n";
1467
- code += "_reject(_err);\n";
1468
- code += "};\n";
1469
- }
1470
- code += content;
1471
- if (errorHelperUsed) {
1472
- code += "_sync = false;\n";
1473
- }
1474
- code += "}));\n";
1475
- fn = new Function(this.args(), code);
1476
- break;
1477
- }
1478
- this.deinit();
1479
- return fn;
1480
- }
1481
- }, {
1482
- key: "setup",
1483
- value: function setup(instance, options) {
1484
- instance._x = options.taps.map(function (t) {
1485
- return t.fn;
1486
- });
1487
- }
1488
-
1489
- /**
1490
- * @param {{ type: "sync" | "promise" | "async", taps: Array<Tap>, interceptors: Array<Interceptor> }} options
1491
- */
1492
- }, {
1493
- key: "init",
1494
- value: function init(options) {
1495
- this.options = options;
1496
- this._args = options.args.slice();
1497
- }
1498
- }, {
1499
- key: "deinit",
1500
- value: function deinit() {
1501
- this.options = undefined;
1502
- this._args = undefined;
1503
- }
1504
- }, {
1505
- key: "contentWithInterceptors",
1506
- value: function contentWithInterceptors(options) {
1507
- var _this = this;
1508
- if (this.options.interceptors.length > 0) {
1509
- var onError = options.onError;
1510
- var onResult = options.onResult;
1511
- var onDone = options.onDone;
1512
- var code = "";
1513
- for (var i = 0; i < this.options.interceptors.length; i++) {
1514
- var interceptor = this.options.interceptors[i];
1515
- if (interceptor.call) {
1516
- code += "".concat(this.getInterceptor(i), ".call(").concat(this.args({
1517
- before: interceptor.context ? "_context" : undefined
1518
- }), ");\n");
1519
- }
1520
- }
1521
- code += this.content(_extends(options, {
1522
- onError: onError && function (err) {
1523
- var code = "";
1524
- for (var _i = 0; _i < _this.options.interceptors.length; _i++) {
1525
- var _interceptor = _this.options.interceptors[_i];
1526
- if (_interceptor.error) {
1527
- code += "".concat(_this.getInterceptor(_i), ".error(").concat(err, ");\n");
1528
- }
1529
- }
1530
- code += onError(err);
1531
- return code;
1532
- },
1533
- onResult: onResult && function (result) {
1534
- var code = "";
1535
- for (var _i2 = 0; _i2 < _this.options.interceptors.length; _i2++) {
1536
- var _interceptor2 = _this.options.interceptors[_i2];
1537
- if (_interceptor2.result) {
1538
- code += "".concat(_this.getInterceptor(_i2), ".result(").concat(result, ");\n");
1539
- }
1540
- }
1541
- code += onResult(result);
1542
- return code;
1543
- },
1544
- onDone: onDone && function () {
1545
- var code = "";
1546
- for (var _i3 = 0; _i3 < _this.options.interceptors.length; _i3++) {
1547
- var _interceptor3 = _this.options.interceptors[_i3];
1548
- if (_interceptor3.done) {
1549
- code += "".concat(_this.getInterceptor(_i3), ".done();\n");
1550
- }
1551
- }
1552
- code += onDone();
1553
- return code;
1554
- }
1555
- }));
1556
- return code;
1557
- } else {
1558
- return this.content(options);
1559
- }
1560
- }
1561
- }, {
1562
- key: "header",
1563
- value: function header() {
1564
- var code = "";
1565
- if (this.needContext()) {
1566
- code += "var _context = {};\n";
1567
- } else {
1568
- code += "var _context;\n";
1569
- }
1570
- code += "var _x = this._x;\n";
1571
- if (this.options.interceptors.length > 0) {
1572
- code += "var _taps = this.taps;\n";
1573
- code += "var _interceptors = this.interceptors;\n";
1574
- }
1575
- return code;
1576
- }
1577
- }, {
1578
- key: "needContext",
1579
- value: function needContext() {
1580
- var _iterator = _createForOfIteratorHelper(this.options.taps),
1581
- _step;
1582
- try {
1583
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
1584
- var tap = _step.value;
1585
- if (tap.context) return true;
1586
- }
1587
- } catch (err) {
1588
- _iterator.e(err);
1589
- } finally {
1590
- _iterator.f();
1591
- }
1592
- return false;
1593
- }
1594
- }, {
1595
- key: "callTap",
1596
- value: function callTap(tapIndex, _ref) {
1597
- var onError = _ref.onError,
1598
- onResult = _ref.onResult,
1599
- onDone = _ref.onDone,
1600
- rethrowIfPossible = _ref.rethrowIfPossible;
1601
- var code = "";
1602
- var hasTapCached = false;
1603
- for (var i = 0; i < this.options.interceptors.length; i++) {
1604
- var interceptor = this.options.interceptors[i];
1605
- if (interceptor.tap) {
1606
- if (!hasTapCached) {
1607
- code += "var _tap".concat(tapIndex, " = ").concat(this.getTap(tapIndex), ";\n");
1608
- hasTapCached = true;
1609
- }
1610
- code += "".concat(this.getInterceptor(i), ".tap(").concat(interceptor.context ? "_context, " : "", "_tap").concat(tapIndex, ");\n");
1611
- }
1612
- }
1613
- code += "var _fn".concat(tapIndex, " = ").concat(this.getTapFn(tapIndex), ";\n");
1614
- var tap = this.options.taps[tapIndex];
1615
- switch (tap.type) {
1616
- case "sync":
1617
- if (!rethrowIfPossible) {
1618
- code += "var _hasError".concat(tapIndex, " = false;\n");
1619
- code += "try {\n";
1620
- }
1621
- if (onResult) {
1622
- code += "var _result".concat(tapIndex, " = _fn").concat(tapIndex, "(").concat(this.args({
1623
- before: tap.context ? "_context" : undefined
1624
- }), ");\n");
1625
- } else {
1626
- code += "_fn".concat(tapIndex, "(").concat(this.args({
1627
- before: tap.context ? "_context" : undefined
1628
- }), ");\n");
1629
- }
1630
- if (!rethrowIfPossible) {
1631
- code += "} catch(_err) {\n";
1632
- code += "_hasError".concat(tapIndex, " = true;\n");
1633
- code += onError("_err");
1634
- code += "}\n";
1635
- code += "if(!_hasError".concat(tapIndex, ") {\n");
1636
- }
1637
- if (onResult) {
1638
- code += onResult("_result".concat(tapIndex));
1639
- }
1640
- if (onDone) {
1641
- code += onDone();
1642
- }
1643
- if (!rethrowIfPossible) {
1644
- code += "}\n";
1645
- }
1646
- break;
1647
- case "async":
1648
- var cbCode = "";
1649
- if (onResult) cbCode += "(function(_err".concat(tapIndex, ", _result").concat(tapIndex, ") {\n");else cbCode += "(function(_err".concat(tapIndex, ") {\n");
1650
- cbCode += "if(_err".concat(tapIndex, ") {\n");
1651
- cbCode += onError("_err".concat(tapIndex));
1652
- cbCode += "} else {\n";
1653
- if (onResult) {
1654
- cbCode += onResult("_result".concat(tapIndex));
1655
- }
1656
- if (onDone) {
1657
- cbCode += onDone();
1658
- }
1659
- cbCode += "}\n";
1660
- cbCode += "})";
1661
- code += "_fn".concat(tapIndex, "(").concat(this.args({
1662
- before: tap.context ? "_context" : undefined,
1663
- after: cbCode
1664
- }), ");\n");
1665
- break;
1666
- case "promise":
1667
- code += "var _hasResult".concat(tapIndex, " = false;\n");
1668
- code += "var _promise".concat(tapIndex, " = _fn").concat(tapIndex, "(").concat(this.args({
1669
- before: tap.context ? "_context" : undefined
1670
- }), ");\n");
1671
- code += "if (!_promise".concat(tapIndex, " || !_promise").concat(tapIndex, ".then)\n");
1672
- code += " throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise".concat(tapIndex, " + ')');\n");
1673
- code += "_promise".concat(tapIndex, ".then((function(_result").concat(tapIndex, ") {\n");
1674
- code += "_hasResult".concat(tapIndex, " = true;\n");
1675
- if (onResult) {
1676
- code += onResult("_result".concat(tapIndex));
1677
- }
1678
- if (onDone) {
1679
- code += onDone();
1680
- }
1681
- code += "}), function(_err".concat(tapIndex, ") {\n");
1682
- code += "if(_hasResult".concat(tapIndex, ") throw _err").concat(tapIndex, ";\n");
1683
- code += onError("_err".concat(tapIndex));
1684
- code += "});\n";
1685
- break;
1686
- }
1687
- return code;
1688
- }
1689
- }, {
1690
- key: "callTapsSeries",
1691
- value: function callTapsSeries(_ref2) {
1692
- var _this2 = this;
1693
- var _onError = _ref2.onError,
1694
- onResult = _ref2.onResult,
1695
- resultReturns = _ref2.resultReturns,
1696
- onDone = _ref2.onDone,
1697
- doneReturns = _ref2.doneReturns,
1698
- rethrowIfPossible = _ref2.rethrowIfPossible;
1699
- if (this.options.taps.length === 0) return onDone();
1700
- var firstAsync = this.options.taps.findIndex(function (t) {
1701
- return t.type !== "sync";
1702
- });
1703
- var somethingReturns = resultReturns || doneReturns;
1704
- var code = "";
1705
- var current = onDone;
1706
- var unrollCounter = 0;
1707
- var _loop = function _loop() {
1708
- var i = j;
1709
- var unroll = current !== onDone && (_this2.options.taps[i].type !== "sync" || unrollCounter++ > 20);
1710
- if (unroll) {
1711
- unrollCounter = 0;
1712
- code += "function _next".concat(i, "() {\n");
1713
- code += current();
1714
- code += "}\n";
1715
- current = function current() {
1716
- return "".concat(somethingReturns ? "return " : "", "_next").concat(i, "();\n");
1717
- };
1718
- }
1719
- var done = current;
1720
- var doneBreak = function doneBreak(skipDone) {
1721
- if (skipDone) return "";
1722
- return onDone();
1723
- };
1724
- var content = _this2.callTap(i, {
1725
- onError: function onError(error) {
1726
- return _onError(i, error, done, doneBreak);
1727
- },
1728
- onResult: onResult && function (result) {
1729
- return onResult(i, result, done, doneBreak);
1730
- },
1731
- onDone: !onResult && done,
1732
- rethrowIfPossible: rethrowIfPossible && (firstAsync < 0 || i < firstAsync)
1733
- });
1734
- current = function current() {
1735
- return content;
1736
- };
1737
- };
1738
- for (var j = this.options.taps.length - 1; j >= 0; j--) {
1739
- _loop();
1740
- }
1741
- code += current();
1742
- return code;
1743
- }
1744
- }, {
1745
- key: "callTapsLooping",
1746
- value: function callTapsLooping(_ref3) {
1747
- var onError = _ref3.onError,
1748
- onDone = _ref3.onDone,
1749
- rethrowIfPossible = _ref3.rethrowIfPossible;
1750
- if (this.options.taps.length === 0) return onDone();
1751
- var syncOnly = this.options.taps.every(function (t) {
1752
- return t.type === "sync";
1753
- });
1754
- var code = "";
1755
- if (!syncOnly) {
1756
- code += "var _looper = (function() {\n";
1757
- code += "var _loopAsync = false;\n";
1758
- }
1759
- code += "var _loop;\n";
1760
- code += "do {\n";
1761
- code += "_loop = false;\n";
1762
- for (var i = 0; i < this.options.interceptors.length; i++) {
1763
- var interceptor = this.options.interceptors[i];
1764
- if (interceptor.loop) {
1765
- code += "".concat(this.getInterceptor(i), ".loop(").concat(this.args({
1766
- before: interceptor.context ? "_context" : undefined
1767
- }), ");\n");
1768
- }
1769
- }
1770
- code += this.callTapsSeries({
1771
- onError: onError,
1772
- onResult: function onResult(i, result, next, doneBreak) {
1773
- var code = "";
1774
- code += "if(".concat(result, " !== undefined) {\n");
1775
- code += "_loop = true;\n";
1776
- if (!syncOnly) code += "if(_loopAsync) _looper();\n";
1777
- code += doneBreak(true);
1778
- code += "} else {\n";
1779
- code += next();
1780
- code += "}\n";
1781
- return code;
1782
- },
1783
- onDone: onDone && function () {
1784
- var code = "";
1785
- code += "if(!_loop) {\n";
1786
- code += onDone();
1787
- code += "}\n";
1788
- return code;
1789
- },
1790
- rethrowIfPossible: rethrowIfPossible && syncOnly
1791
- });
1792
- code += "} while(_loop);\n";
1793
- if (!syncOnly) {
1794
- code += "_loopAsync = true;\n";
1795
- code += "});\n";
1796
- code += "_looper();\n";
1797
- }
1798
- return code;
1799
- }
1800
- }, {
1801
- key: "callTapsParallel",
1802
- value: function callTapsParallel(_ref4) {
1803
- var _this3 = this;
1804
- var _onError2 = _ref4.onError,
1805
- onResult = _ref4.onResult,
1806
- onDone = _ref4.onDone,
1807
- rethrowIfPossible = _ref4.rethrowIfPossible,
1808
- _ref4$onTap = _ref4.onTap,
1809
- onTap = _ref4$onTap === void 0 ? function (i, run) {
1810
- return run();
1811
- } : _ref4$onTap;
1812
- if (this.options.taps.length <= 1) {
1813
- return this.callTapsSeries({
1814
- onError: _onError2,
1815
- onResult: onResult,
1816
- onDone: onDone,
1817
- rethrowIfPossible: rethrowIfPossible
1818
- });
1819
- }
1820
- var code = "";
1821
- code += "do {\n";
1822
- code += "var _counter = ".concat(this.options.taps.length, ";\n");
1823
- if (onDone) {
1824
- code += "var _done = (function() {\n";
1825
- code += onDone();
1826
- code += "});\n";
1827
- }
1828
- var _loop2 = function _loop2(i) {
1829
- var done = function done() {
1830
- if (onDone) return "if(--_counter === 0) _done();\n";else return "--_counter;";
1831
- };
1832
- var doneBreak = function doneBreak(skipDone) {
1833
- if (skipDone || !onDone) return "_counter = 0;\n";else return "_counter = 0;\n_done();\n";
1834
- };
1835
- code += "if(_counter <= 0) break;\n";
1836
- code += onTap(i, function () {
1837
- return _this3.callTap(i, {
1838
- onError: function onError(error) {
1839
- var code = "";
1840
- code += "if(_counter > 0) {\n";
1841
- code += _onError2(i, error, done, doneBreak);
1842
- code += "}\n";
1843
- return code;
1844
- },
1845
- onResult: onResult && function (result) {
1846
- var code = "";
1847
- code += "if(_counter > 0) {\n";
1848
- code += onResult(i, result, done, doneBreak);
1849
- code += "}\n";
1850
- return code;
1851
- },
1852
- onDone: !onResult && function () {
1853
- return done();
1854
- },
1855
- rethrowIfPossible: rethrowIfPossible
1856
- });
1857
- }, done, doneBreak);
1858
- };
1859
- for (var i = 0; i < this.options.taps.length; i++) {
1860
- _loop2(i);
1861
- }
1862
- code += "} while(false);\n";
1863
- return code;
1864
- }
1865
- }, {
1866
- key: "args",
1867
- value: function args() {
1868
- var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1869
- before = _ref5.before,
1870
- after = _ref5.after;
1871
- var allArgs = this._args;
1872
- if (before) allArgs = [before].concat(allArgs);
1873
- if (after) allArgs = allArgs.concat(after);
1874
- if (allArgs.length === 0) {
1875
- return "";
1876
- } else {
1877
- return allArgs.join(", ");
1878
- }
1879
- }
1880
- }, {
1881
- key: "getTapFn",
1882
- value: function getTapFn(idx) {
1883
- return "_x[".concat(idx, "]");
1884
- }
1885
- }, {
1886
- key: "getTap",
1887
- value: function getTap(idx) {
1888
- return "_taps[".concat(idx, "]");
1889
- }
1890
- }, {
1891
- key: "getInterceptor",
1892
- value: function getInterceptor(idx) {
1893
- return "_interceptors[".concat(idx, "]");
1894
- }
1895
- }]);
1896
- return HookCodeFactory;
1897
- }();
1898
- module.exports = HookCodeFactory;
1899
-
1900
- /***/ }),
1901
-
1902
- /***/ "./node_modules/tapable/lib/HookMap.js":
1903
- /*!*********************************************!*\
1904
- !*** ./node_modules/tapable/lib/HookMap.js ***!
1905
- \*********************************************/
1906
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1907
-
1908
- /*
1909
- MIT License http://www.opensource.org/licenses/mit-license.php
1910
- Author Tobias Koppers @sokra
1911
- */
1912
-
1913
-
1914
- function _extends() {
1915
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1916
- for (var i = 1; i < arguments.length; i++) {
1917
- var source = arguments[i];
1918
- for (var key in source) {
1919
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1920
- target[key] = source[key];
1921
- }
1922
- }
1923
- }
1924
- return target;
1925
- };
1926
- return _extends.apply(this, arguments);
1927
- }
1928
- function _classCallCheck(instance, Constructor) {
1929
- if (!(instance instanceof Constructor)) {
1930
- throw new TypeError("Cannot call a class as a function");
1931
- }
1932
- }
1933
- function _defineProperties(target, props) {
1934
- for (var i = 0; i < props.length; i++) {
1935
- var descriptor = props[i];
1936
- descriptor.enumerable = descriptor.enumerable || false;
1937
- descriptor.configurable = true;
1938
- if ("value" in descriptor) descriptor.writable = true;
1939
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1940
- }
1941
- }
1942
- function _createClass(Constructor, protoProps, staticProps) {
1943
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1944
- if (staticProps) _defineProperties(Constructor, staticProps);
1945
- Object.defineProperty(Constructor, "prototype", {
1946
- writable: false
1947
- });
1948
- return Constructor;
1949
- }
1950
- function _toPropertyKey(t) {
1951
- var i = _toPrimitive(t, "string");
1952
- return "symbol" == typeof i ? i : String(i);
1953
- }
1954
- function _toPrimitive(t, r) {
1955
- if ("object" != typeof t || !t) return t;
1956
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
1957
- if (void 0 !== e) {
1958
- var i = e.call(t, r || "default");
1959
- if ("object" != typeof i) return i;
1960
- throw new TypeError("@@toPrimitive must return a primitive value.");
1961
- }
1962
- return ("string" === r ? String : Number)(t);
1963
- }
1964
- var util = __webpack_require__(/*! util */ "./node_modules/tapable/lib/util-browser.js");
1965
- var defaultFactory = function defaultFactory(key, hook) {
1966
- return hook;
1967
- };
1968
- var HookMap = /*#__PURE__*/function () {
1969
- function HookMap(factory) {
1970
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
1971
- _classCallCheck(this, HookMap);
1972
- this._map = new Map();
1973
- this.name = name;
1974
- this._factory = factory;
1975
- this._interceptors = [];
1976
- }
1977
- _createClass(HookMap, [{
1978
- key: "get",
1979
- value: function get(key) {
1980
- return this._map.get(key);
1981
- }
1982
- }, {
1983
- key: "for",
1984
- value: function _for(key) {
1985
- var hook = this.get(key);
1986
- if (hook !== undefined) {
1987
- return hook;
1988
- }
1989
- var newHook = this._factory(key);
1990
- var interceptors = this._interceptors;
1991
- for (var i = 0; i < interceptors.length; i++) {
1992
- newHook = interceptors[i].factory(key, newHook);
1993
- }
1994
- this._map.set(key, newHook);
1995
- return newHook;
1996
- }
1997
- }, {
1998
- key: "intercept",
1999
- value: function intercept(interceptor) {
2000
- this._interceptors.push(_extends({
2001
- factory: defaultFactory
2002
- }, interceptor));
2003
- }
2004
- }]);
2005
- return HookMap;
2006
- }();
2007
- HookMap.prototype.tap = util.deprecate(function (key, options, fn) {
2008
- return this.for(key).tap(options, fn);
2009
- }, "HookMap#tap(key,…) is deprecated. Use HookMap#for(key).tap(…) instead.");
2010
- HookMap.prototype.tapAsync = util.deprecate(function (key, options, fn) {
2011
- return this.for(key).tapAsync(options, fn);
2012
- }, "HookMap#tapAsync(key,…) is deprecated. Use HookMap#for(key).tapAsync(…) instead.");
2013
- HookMap.prototype.tapPromise = util.deprecate(function (key, options, fn) {
2014
- return this.for(key).tapPromise(options, fn);
2015
- }, "HookMap#tapPromise(key,…) is deprecated. Use HookMap#for(key).tapPromise(…) instead.");
2016
- module.exports = HookMap;
2017
-
2018
- /***/ }),
2019
-
2020
- /***/ "./node_modules/tapable/lib/MultiHook.js":
2021
- /*!***********************************************!*\
2022
- !*** ./node_modules/tapable/lib/MultiHook.js ***!
2023
- \***********************************************/
2024
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2025
-
2026
- /*
2027
- MIT License http://www.opensource.org/licenses/mit-license.php
2028
- Author Tobias Koppers @sokra
2029
- */
2030
-
2031
-
2032
- function _createForOfIteratorHelper(o, allowArrayLike) {
2033
- var it = typeof (typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }) !== "undefined" && o[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).iterator] || o["@@iterator"];
2034
- if (!it) {
2035
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
2036
- if (it) o = it;
2037
- var i = 0;
2038
- var F = function F() {};
2039
- return {
2040
- s: F,
2041
- n: function n() {
2042
- if (i >= o.length) return {
2043
- done: true
2044
- };
2045
- return {
2046
- done: false,
2047
- value: o[i++]
2048
- };
2049
- },
2050
- e: function e(_e) {
2051
- throw _e;
2052
- },
2053
- f: F
2054
- };
2055
- }
2056
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2057
- }
2058
- var normalCompletion = true,
2059
- didErr = false,
2060
- err;
2061
- return {
2062
- s: function s() {
2063
- it = it.call(o);
2064
- },
2065
- n: function n() {
2066
- var step = it.next();
2067
- normalCompletion = step.done;
2068
- return step;
2069
- },
2070
- e: function e(_e2) {
2071
- didErr = true;
2072
- err = _e2;
2073
- },
2074
- f: function f() {
2075
- try {
2076
- if (!normalCompletion && it.return != null) it.return();
2077
- } finally {
2078
- if (didErr) throw err;
2079
- }
2080
- }
2081
- };
2082
- }
2083
- function _unsupportedIterableToArray(o, minLen) {
2084
- if (!o) return;
2085
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2086
- var n = Object.prototype.toString.call(o).slice(8, -1);
2087
- if (n === "Object" && o.constructor) n = o.constructor.name;
2088
- if (n === "Map" || n === "Set") return Array.from(o);
2089
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2090
- }
2091
- function _arrayLikeToArray(arr, len) {
2092
- if (len == null || len > arr.length) len = arr.length;
2093
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2094
- return arr2;
2095
- }
2096
- function _classCallCheck(instance, Constructor) {
2097
- if (!(instance instanceof Constructor)) {
2098
- throw new TypeError("Cannot call a class as a function");
2099
- }
2100
- }
2101
- function _defineProperties(target, props) {
2102
- for (var i = 0; i < props.length; i++) {
2103
- var descriptor = props[i];
2104
- descriptor.enumerable = descriptor.enumerable || false;
2105
- descriptor.configurable = true;
2106
- if ("value" in descriptor) descriptor.writable = true;
2107
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2108
- }
2109
- }
2110
- function _createClass(Constructor, protoProps, staticProps) {
2111
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2112
- if (staticProps) _defineProperties(Constructor, staticProps);
2113
- Object.defineProperty(Constructor, "prototype", {
2114
- writable: false
2115
- });
2116
- return Constructor;
2117
- }
2118
- function _toPropertyKey(t) {
2119
- var i = _toPrimitive(t, "string");
2120
- return "symbol" == typeof i ? i : String(i);
2121
- }
2122
- function _toPrimitive(t, r) {
2123
- if ("object" != typeof t || !t) return t;
2124
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
2125
- if (void 0 !== e) {
2126
- var i = e.call(t, r || "default");
2127
- if ("object" != typeof i) return i;
2128
- throw new TypeError("@@toPrimitive must return a primitive value.");
2129
- }
2130
- return ("string" === r ? String : Number)(t);
2131
- }
2132
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
2133
- var MultiHook = /*#__PURE__*/function () {
2134
- function MultiHook(hooks) {
2135
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
2136
- _classCallCheck(this, MultiHook);
2137
- this.hooks = hooks;
2138
- this.name = name;
2139
- }
2140
- _createClass(MultiHook, [{
2141
- key: "tap",
2142
- value: function tap(options, fn) {
2143
- var _iterator = _createForOfIteratorHelper(this.hooks),
2144
- _step;
2145
- try {
2146
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2147
- var hook = _step.value;
2148
- hook.tap(options, fn);
2149
- }
2150
- } catch (err) {
2151
- _iterator.e(err);
2152
- } finally {
2153
- _iterator.f();
2154
- }
2155
- }
2156
- }, {
2157
- key: "tapAsync",
2158
- value: function tapAsync(options, fn) {
2159
- var _iterator2 = _createForOfIteratorHelper(this.hooks),
2160
- _step2;
2161
- try {
2162
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2163
- var hook = _step2.value;
2164
- hook.tapAsync(options, fn);
2165
- }
2166
- } catch (err) {
2167
- _iterator2.e(err);
2168
- } finally {
2169
- _iterator2.f();
2170
- }
2171
- }
2172
- }, {
2173
- key: "tapPromise",
2174
- value: function tapPromise(options, fn) {
2175
- var _iterator3 = _createForOfIteratorHelper(this.hooks),
2176
- _step3;
2177
- try {
2178
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
2179
- var hook = _step3.value;
2180
- hook.tapPromise(options, fn);
2181
- }
2182
- } catch (err) {
2183
- _iterator3.e(err);
2184
- } finally {
2185
- _iterator3.f();
2186
- }
2187
- }
2188
- }, {
2189
- key: "isUsed",
2190
- value: function isUsed() {
2191
- var _iterator4 = _createForOfIteratorHelper(this.hooks),
2192
- _step4;
2193
- try {
2194
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
2195
- var hook = _step4.value;
2196
- if (hook.isUsed()) return true;
2197
- }
2198
- } catch (err) {
2199
- _iterator4.e(err);
2200
- } finally {
2201
- _iterator4.f();
2202
- }
2203
- return false;
2204
- }
2205
- }, {
2206
- key: "intercept",
2207
- value: function intercept(interceptor) {
2208
- var _iterator5 = _createForOfIteratorHelper(this.hooks),
2209
- _step5;
2210
- try {
2211
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
2212
- var hook = _step5.value;
2213
- hook.intercept(interceptor);
2214
- }
2215
- } catch (err) {
2216
- _iterator5.e(err);
2217
- } finally {
2218
- _iterator5.f();
2219
- }
2220
- }
2221
- }, {
2222
- key: "withOptions",
2223
- value: function withOptions(options) {
2224
- return new MultiHook(this.hooks.map(function (h) {
2225
- return h.withOptions(options);
2226
- }), this.name);
2227
- }
2228
- }]);
2229
- return MultiHook;
2230
- }();
2231
- module.exports = MultiHook;
2232
-
2233
- /***/ }),
2234
-
2235
- /***/ "./node_modules/tapable/lib/SyncBailHook.js":
2236
- /*!**************************************************!*\
2237
- !*** ./node_modules/tapable/lib/SyncBailHook.js ***!
2238
- \**************************************************/
2239
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2240
-
2241
- /*
2242
- MIT License http://www.opensource.org/licenses/mit-license.php
2243
- Author Tobias Koppers @sokra
2244
- */
2245
-
2246
-
2247
- function _classCallCheck(instance, Constructor) {
2248
- if (!(instance instanceof Constructor)) {
2249
- throw new TypeError("Cannot call a class as a function");
2250
- }
2251
- }
2252
- function _defineProperties(target, props) {
2253
- for (var i = 0; i < props.length; i++) {
2254
- var descriptor = props[i];
2255
- descriptor.enumerable = descriptor.enumerable || false;
2256
- descriptor.configurable = true;
2257
- if ("value" in descriptor) descriptor.writable = true;
2258
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2259
- }
2260
- }
2261
- function _createClass(Constructor, protoProps, staticProps) {
2262
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2263
- if (staticProps) _defineProperties(Constructor, staticProps);
2264
- Object.defineProperty(Constructor, "prototype", {
2265
- writable: false
2266
- });
2267
- return Constructor;
2268
- }
2269
- function _toPropertyKey(t) {
2270
- var i = _toPrimitive(t, "string");
2271
- return "symbol" == typeof i ? i : String(i);
2272
- }
2273
- function _toPrimitive(t, r) {
2274
- if ("object" != typeof t || !t) return t;
2275
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
2276
- if (void 0 !== e) {
2277
- var i = e.call(t, r || "default");
2278
- if ("object" != typeof i) return i;
2279
- throw new TypeError("@@toPrimitive must return a primitive value.");
2280
- }
2281
- return ("string" === r ? String : Number)(t);
2282
- }
2283
- function _callSuper(t, o, e) {
2284
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2285
- }
2286
- function _possibleConstructorReturn(self, call) {
2287
- if (call && (typeof call === "object" || typeof call === "function")) {
2288
- return call;
2289
- } else if (call !== void 0) {
2290
- throw new TypeError("Derived constructors may only return object or undefined");
2291
- }
2292
- return _assertThisInitialized(self);
2293
- }
2294
- function _assertThisInitialized(self) {
2295
- if (self === void 0) {
2296
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2297
- }
2298
- return self;
2299
- }
2300
- function _isNativeReflectConstruct() {
2301
- try {
2302
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2303
- } catch (t) {}
2304
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2305
- return !!t;
2306
- })();
2307
- }
2308
- function _getPrototypeOf(o) {
2309
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
2310
- return o.__proto__ || Object.getPrototypeOf(o);
2311
- };
2312
- return _getPrototypeOf(o);
2313
- }
2314
- function _inherits(subClass, superClass) {
2315
- if (typeof superClass !== "function" && superClass !== null) {
2316
- throw new TypeError("Super expression must either be null or a function");
2317
- }
2318
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2319
- constructor: {
2320
- value: subClass,
2321
- writable: true,
2322
- configurable: true
2323
- }
2324
- });
2325
- Object.defineProperty(subClass, "prototype", {
2326
- writable: false
2327
- });
2328
- if (superClass) _setPrototypeOf(subClass, superClass);
2329
- }
2330
- function _setPrototypeOf(o, p) {
2331
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2332
- o.__proto__ = p;
2333
- return o;
2334
- };
2335
- return _setPrototypeOf(o, p);
2336
- }
2337
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
2338
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
2339
- var SyncBailHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
2340
- _inherits(SyncBailHookCodeFactory, _HookCodeFactory);
2341
- function SyncBailHookCodeFactory() {
2342
- _classCallCheck(this, SyncBailHookCodeFactory);
2343
- return _callSuper(this, SyncBailHookCodeFactory, arguments);
2344
- }
2345
- _createClass(SyncBailHookCodeFactory, [{
2346
- key: "content",
2347
- value: function content(_ref) {
2348
- var _onError = _ref.onError,
2349
- _onResult = _ref.onResult,
2350
- resultReturns = _ref.resultReturns,
2351
- onDone = _ref.onDone,
2352
- rethrowIfPossible = _ref.rethrowIfPossible;
2353
- return this.callTapsSeries({
2354
- onError: function onError(i, err) {
2355
- return _onError(err);
2356
- },
2357
- onResult: function onResult(i, result, next) {
2358
- return "if(".concat(result, " !== undefined) {\n").concat(_onResult(result), ";\n} else {\n").concat(next(), "}\n");
2359
- },
2360
- resultReturns: resultReturns,
2361
- onDone: onDone,
2362
- rethrowIfPossible: rethrowIfPossible
2363
- });
2364
- }
2365
- }]);
2366
- return SyncBailHookCodeFactory;
2367
- }(HookCodeFactory);
2368
- var factory = new SyncBailHookCodeFactory();
2369
- var TAP_ASYNC = function TAP_ASYNC() {
2370
- throw new Error("tapAsync is not supported on a SyncBailHook");
2371
- };
2372
- var TAP_PROMISE = function TAP_PROMISE() {
2373
- throw new Error("tapPromise is not supported on a SyncBailHook");
2374
- };
2375
- var COMPILE = function COMPILE(options) {
2376
- factory.setup(this, options);
2377
- return factory.create(options);
2378
- };
2379
- function SyncBailHook() {
2380
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2381
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
2382
- var hook = new Hook(args, name);
2383
- hook.constructor = SyncBailHook;
2384
- hook.tapAsync = TAP_ASYNC;
2385
- hook.tapPromise = TAP_PROMISE;
2386
- hook.compile = COMPILE;
2387
- return hook;
2388
- }
2389
- SyncBailHook.prototype = null;
2390
- module.exports = SyncBailHook;
2391
-
2392
- /***/ }),
2393
-
2394
- /***/ "./node_modules/tapable/lib/SyncHook.js":
5
+ /***/ "./client-src/modules/logger/tapable.js":
2395
6
  /*!**********************************************!*\
2396
- !*** ./node_modules/tapable/lib/SyncHook.js ***!
7
+ !*** ./client-src/modules/logger/tapable.js ***!
2397
8
  \**********************************************/
2398
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2399
-
2400
- /*
2401
- MIT License http://www.opensource.org/licenses/mit-license.php
2402
- Author Tobias Koppers @sokra
2403
- */
2404
-
2405
-
2406
- function _classCallCheck(instance, Constructor) {
2407
- if (!(instance instanceof Constructor)) {
2408
- throw new TypeError("Cannot call a class as a function");
2409
- }
2410
- }
2411
- function _defineProperties(target, props) {
2412
- for (var i = 0; i < props.length; i++) {
2413
- var descriptor = props[i];
2414
- descriptor.enumerable = descriptor.enumerable || false;
2415
- descriptor.configurable = true;
2416
- if ("value" in descriptor) descriptor.writable = true;
2417
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2418
- }
2419
- }
2420
- function _createClass(Constructor, protoProps, staticProps) {
2421
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2422
- if (staticProps) _defineProperties(Constructor, staticProps);
2423
- Object.defineProperty(Constructor, "prototype", {
2424
- writable: false
2425
- });
2426
- return Constructor;
2427
- }
2428
- function _toPropertyKey(t) {
2429
- var i = _toPrimitive(t, "string");
2430
- return "symbol" == typeof i ? i : String(i);
2431
- }
2432
- function _toPrimitive(t, r) {
2433
- if ("object" != typeof t || !t) return t;
2434
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
2435
- if (void 0 !== e) {
2436
- var i = e.call(t, r || "default");
2437
- if ("object" != typeof i) return i;
2438
- throw new TypeError("@@toPrimitive must return a primitive value.");
2439
- }
2440
- return ("string" === r ? String : Number)(t);
2441
- }
2442
- function _callSuper(t, o, e) {
2443
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2444
- }
2445
- function _possibleConstructorReturn(self, call) {
2446
- if (call && (typeof call === "object" || typeof call === "function")) {
2447
- return call;
2448
- } else if (call !== void 0) {
2449
- throw new TypeError("Derived constructors may only return object or undefined");
2450
- }
2451
- return _assertThisInitialized(self);
2452
- }
2453
- function _assertThisInitialized(self) {
2454
- if (self === void 0) {
2455
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2456
- }
2457
- return self;
2458
- }
2459
- function _isNativeReflectConstruct() {
2460
- try {
2461
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2462
- } catch (t) {}
2463
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2464
- return !!t;
2465
- })();
2466
- }
2467
- function _getPrototypeOf(o) {
2468
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
2469
- return o.__proto__ || Object.getPrototypeOf(o);
2470
- };
2471
- return _getPrototypeOf(o);
2472
- }
2473
- function _inherits(subClass, superClass) {
2474
- if (typeof superClass !== "function" && superClass !== null) {
2475
- throw new TypeError("Super expression must either be null or a function");
2476
- }
2477
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2478
- constructor: {
2479
- value: subClass,
2480
- writable: true,
2481
- configurable: true
2482
- }
2483
- });
2484
- Object.defineProperty(subClass, "prototype", {
2485
- writable: false
2486
- });
2487
- if (superClass) _setPrototypeOf(subClass, superClass);
2488
- }
2489
- function _setPrototypeOf(o, p) {
2490
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2491
- o.__proto__ = p;
2492
- return o;
2493
- };
2494
- return _setPrototypeOf(o, p);
2495
- }
2496
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
2497
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
2498
- var SyncHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
2499
- _inherits(SyncHookCodeFactory, _HookCodeFactory);
2500
- function SyncHookCodeFactory() {
2501
- _classCallCheck(this, SyncHookCodeFactory);
2502
- return _callSuper(this, SyncHookCodeFactory, arguments);
2503
- }
2504
- _createClass(SyncHookCodeFactory, [{
2505
- key: "content",
2506
- value: function content(_ref) {
2507
- var _onError = _ref.onError,
2508
- onDone = _ref.onDone,
2509
- rethrowIfPossible = _ref.rethrowIfPossible;
2510
- return this.callTapsSeries({
2511
- onError: function onError(i, err) {
2512
- return _onError(err);
2513
- },
2514
- onDone: onDone,
2515
- rethrowIfPossible: rethrowIfPossible
2516
- });
2517
- }
2518
- }]);
2519
- return SyncHookCodeFactory;
2520
- }(HookCodeFactory);
2521
- var factory = new SyncHookCodeFactory();
2522
- var TAP_ASYNC = function TAP_ASYNC() {
2523
- throw new Error("tapAsync is not supported on a SyncHook");
2524
- };
2525
- var TAP_PROMISE = function TAP_PROMISE() {
2526
- throw new Error("tapPromise is not supported on a SyncHook");
2527
- };
2528
- var COMPILE = function COMPILE(options) {
2529
- factory.setup(this, options);
2530
- return factory.create(options);
2531
- };
2532
- function SyncHook() {
2533
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2534
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
2535
- var hook = new Hook(args, name);
2536
- hook.constructor = SyncHook;
2537
- hook.tapAsync = TAP_ASYNC;
2538
- hook.tapPromise = TAP_PROMISE;
2539
- hook.compile = COMPILE;
2540
- return hook;
2541
- }
2542
- SyncHook.prototype = null;
2543
- module.exports = SyncHook;
2544
-
2545
- /***/ }),
2546
-
2547
- /***/ "./node_modules/tapable/lib/SyncLoopHook.js":
2548
- /*!**************************************************!*\
2549
- !*** ./node_modules/tapable/lib/SyncLoopHook.js ***!
2550
- \**************************************************/
2551
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2552
-
2553
- /*
2554
- MIT License http://www.opensource.org/licenses/mit-license.php
2555
- Author Tobias Koppers @sokra
2556
- */
2557
-
2558
-
2559
- function _classCallCheck(instance, Constructor) {
2560
- if (!(instance instanceof Constructor)) {
2561
- throw new TypeError("Cannot call a class as a function");
2562
- }
2563
- }
2564
- function _defineProperties(target, props) {
2565
- for (var i = 0; i < props.length; i++) {
2566
- var descriptor = props[i];
2567
- descriptor.enumerable = descriptor.enumerable || false;
2568
- descriptor.configurable = true;
2569
- if ("value" in descriptor) descriptor.writable = true;
2570
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2571
- }
2572
- }
2573
- function _createClass(Constructor, protoProps, staticProps) {
2574
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2575
- if (staticProps) _defineProperties(Constructor, staticProps);
2576
- Object.defineProperty(Constructor, "prototype", {
2577
- writable: false
2578
- });
2579
- return Constructor;
2580
- }
2581
- function _toPropertyKey(t) {
2582
- var i = _toPrimitive(t, "string");
2583
- return "symbol" == typeof i ? i : String(i);
2584
- }
2585
- function _toPrimitive(t, r) {
2586
- if ("object" != typeof t || !t) return t;
2587
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
2588
- if (void 0 !== e) {
2589
- var i = e.call(t, r || "default");
2590
- if ("object" != typeof i) return i;
2591
- throw new TypeError("@@toPrimitive must return a primitive value.");
2592
- }
2593
- return ("string" === r ? String : Number)(t);
2594
- }
2595
- function _callSuper(t, o, e) {
2596
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2597
- }
2598
- function _possibleConstructorReturn(self, call) {
2599
- if (call && (typeof call === "object" || typeof call === "function")) {
2600
- return call;
2601
- } else if (call !== void 0) {
2602
- throw new TypeError("Derived constructors may only return object or undefined");
2603
- }
2604
- return _assertThisInitialized(self);
2605
- }
2606
- function _assertThisInitialized(self) {
2607
- if (self === void 0) {
2608
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2609
- }
2610
- return self;
2611
- }
2612
- function _isNativeReflectConstruct() {
2613
- try {
2614
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2615
- } catch (t) {}
2616
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2617
- return !!t;
2618
- })();
2619
- }
2620
- function _getPrototypeOf(o) {
2621
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
2622
- return o.__proto__ || Object.getPrototypeOf(o);
2623
- };
2624
- return _getPrototypeOf(o);
2625
- }
2626
- function _inherits(subClass, superClass) {
2627
- if (typeof superClass !== "function" && superClass !== null) {
2628
- throw new TypeError("Super expression must either be null or a function");
2629
- }
2630
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2631
- constructor: {
2632
- value: subClass,
2633
- writable: true,
2634
- configurable: true
2635
- }
2636
- });
2637
- Object.defineProperty(subClass, "prototype", {
2638
- writable: false
2639
- });
2640
- if (superClass) _setPrototypeOf(subClass, superClass);
2641
- }
2642
- function _setPrototypeOf(o, p) {
2643
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2644
- o.__proto__ = p;
2645
- return o;
2646
- };
2647
- return _setPrototypeOf(o, p);
2648
- }
2649
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
2650
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
2651
- var SyncLoopHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
2652
- _inherits(SyncLoopHookCodeFactory, _HookCodeFactory);
2653
- function SyncLoopHookCodeFactory() {
2654
- _classCallCheck(this, SyncLoopHookCodeFactory);
2655
- return _callSuper(this, SyncLoopHookCodeFactory, arguments);
2656
- }
2657
- _createClass(SyncLoopHookCodeFactory, [{
2658
- key: "content",
2659
- value: function content(_ref) {
2660
- var _onError = _ref.onError,
2661
- onDone = _ref.onDone,
2662
- rethrowIfPossible = _ref.rethrowIfPossible;
2663
- return this.callTapsLooping({
2664
- onError: function onError(i, err) {
2665
- return _onError(err);
2666
- },
2667
- onDone: onDone,
2668
- rethrowIfPossible: rethrowIfPossible
2669
- });
2670
- }
2671
- }]);
2672
- return SyncLoopHookCodeFactory;
2673
- }(HookCodeFactory);
2674
- var factory = new SyncLoopHookCodeFactory();
2675
- var TAP_ASYNC = function TAP_ASYNC() {
2676
- throw new Error("tapAsync is not supported on a SyncLoopHook");
2677
- };
2678
- var TAP_PROMISE = function TAP_PROMISE() {
2679
- throw new Error("tapPromise is not supported on a SyncLoopHook");
2680
- };
2681
- var COMPILE = function COMPILE(options) {
2682
- factory.setup(this, options);
2683
- return factory.create(options);
2684
- };
2685
- function SyncLoopHook() {
2686
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2687
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
2688
- var hook = new Hook(args, name);
2689
- hook.constructor = SyncLoopHook;
2690
- hook.tapAsync = TAP_ASYNC;
2691
- hook.tapPromise = TAP_PROMISE;
2692
- hook.compile = COMPILE;
2693
- return hook;
2694
- }
2695
- SyncLoopHook.prototype = null;
2696
- module.exports = SyncLoopHook;
2697
-
2698
- /***/ }),
2699
-
2700
- /***/ "./node_modules/tapable/lib/SyncWaterfallHook.js":
2701
- /*!*******************************************************!*\
2702
- !*** ./node_modules/tapable/lib/SyncWaterfallHook.js ***!
2703
- \*******************************************************/
2704
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2705
-
2706
- /*
2707
- MIT License http://www.opensource.org/licenses/mit-license.php
2708
- Author Tobias Koppers @sokra
2709
- */
9
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2710
10
 
2711
-
2712
- function _classCallCheck(instance, Constructor) {
2713
- if (!(instance instanceof Constructor)) {
2714
- throw new TypeError("Cannot call a class as a function");
2715
- }
2716
- }
2717
- function _defineProperties(target, props) {
2718
- for (var i = 0; i < props.length; i++) {
2719
- var descriptor = props[i];
2720
- descriptor.enumerable = descriptor.enumerable || false;
2721
- descriptor.configurable = true;
2722
- if ("value" in descriptor) descriptor.writable = true;
2723
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2724
- }
2725
- }
2726
- function _createClass(Constructor, protoProps, staticProps) {
2727
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2728
- if (staticProps) _defineProperties(Constructor, staticProps);
2729
- Object.defineProperty(Constructor, "prototype", {
2730
- writable: false
2731
- });
2732
- return Constructor;
2733
- }
2734
- function _toPropertyKey(t) {
2735
- var i = _toPrimitive(t, "string");
2736
- return "symbol" == typeof i ? i : String(i);
2737
- }
2738
- function _toPrimitive(t, r) {
2739
- if ("object" != typeof t || !t) return t;
2740
- var e = t[(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; }).toPrimitive];
2741
- if (void 0 !== e) {
2742
- var i = e.call(t, r || "default");
2743
- if ("object" != typeof i) return i;
2744
- throw new TypeError("@@toPrimitive must return a primitive value.");
2745
- }
2746
- return ("string" === r ? String : Number)(t);
2747
- }
2748
- function _callSuper(t, o, e) {
2749
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
2750
- }
2751
- function _possibleConstructorReturn(self, call) {
2752
- if (call && (typeof call === "object" || typeof call === "function")) {
2753
- return call;
2754
- } else if (call !== void 0) {
2755
- throw new TypeError("Derived constructors may only return object or undefined");
2756
- }
2757
- return _assertThisInitialized(self);
2758
- }
2759
- function _assertThisInitialized(self) {
2760
- if (self === void 0) {
2761
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2762
- }
2763
- return self;
2764
- }
2765
- function _isNativeReflectConstruct() {
2766
- try {
2767
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2768
- } catch (t) {}
2769
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2770
- return !!t;
2771
- })();
2772
- }
2773
- function _getPrototypeOf(o) {
2774
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
2775
- return o.__proto__ || Object.getPrototypeOf(o);
2776
- };
2777
- return _getPrototypeOf(o);
2778
- }
2779
- function _inherits(subClass, superClass) {
2780
- if (typeof superClass !== "function" && superClass !== null) {
2781
- throw new TypeError("Super expression must either be null or a function");
2782
- }
2783
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2784
- constructor: {
2785
- value: subClass,
2786
- writable: true,
2787
- configurable: true
2788
- }
2789
- });
2790
- Object.defineProperty(subClass, "prototype", {
2791
- writable: false
2792
- });
2793
- if (superClass) _setPrototypeOf(subClass, superClass);
2794
- }
2795
- function _setPrototypeOf(o, p) {
2796
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2797
- o.__proto__ = p;
2798
- return o;
11
+ __webpack_require__.r(__webpack_exports__);
12
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
+ /* harmony export */ SyncBailHook: function() { return /* binding */ SyncBailHook; }
14
+ /* harmony export */ });
15
+ function SyncBailHook() {
16
+ return {
17
+ call: function call() {}
2799
18
  };
2800
- return _setPrototypeOf(o, p);
2801
19
  }
2802
- var Hook = __webpack_require__(/*! ./Hook */ "./node_modules/tapable/lib/Hook.js");
2803
- var HookCodeFactory = __webpack_require__(/*! ./HookCodeFactory */ "./node_modules/tapable/lib/HookCodeFactory.js");
2804
- var SyncWaterfallHookCodeFactory = /*#__PURE__*/function (_HookCodeFactory) {
2805
- _inherits(SyncWaterfallHookCodeFactory, _HookCodeFactory);
2806
- function SyncWaterfallHookCodeFactory() {
2807
- _classCallCheck(this, SyncWaterfallHookCodeFactory);
2808
- return _callSuper(this, SyncWaterfallHookCodeFactory, arguments);
2809
- }
2810
- _createClass(SyncWaterfallHookCodeFactory, [{
2811
- key: "content",
2812
- value: function content(_ref) {
2813
- var _this = this;
2814
- var _onError = _ref.onError,
2815
- onResult = _ref.onResult,
2816
- resultReturns = _ref.resultReturns,
2817
- rethrowIfPossible = _ref.rethrowIfPossible;
2818
- return this.callTapsSeries({
2819
- onError: function onError(i, err) {
2820
- return _onError(err);
2821
- },
2822
- onResult: function onResult(i, result, next) {
2823
- var code = "";
2824
- code += "if(".concat(result, " !== undefined) {\n");
2825
- code += "".concat(_this._args[0], " = ").concat(result, ";\n");
2826
- code += "}\n";
2827
- code += next();
2828
- return code;
2829
- },
2830
- onDone: function onDone() {
2831
- return onResult(_this._args[0]);
2832
- },
2833
- doneReturns: resultReturns,
2834
- rethrowIfPossible: rethrowIfPossible
2835
- });
2836
- }
2837
- }]);
2838
- return SyncWaterfallHookCodeFactory;
2839
- }(HookCodeFactory);
2840
- var factory = new SyncWaterfallHookCodeFactory();
2841
- var TAP_ASYNC = function TAP_ASYNC() {
2842
- throw new Error("tapAsync is not supported on a SyncWaterfallHook");
2843
- };
2844
- var TAP_PROMISE = function TAP_PROMISE() {
2845
- throw new Error("tapPromise is not supported on a SyncWaterfallHook");
2846
- };
2847
- var COMPILE = function COMPILE(options) {
2848
- factory.setup(this, options);
2849
- return factory.create(options);
2850
- };
2851
- function SyncWaterfallHook() {
2852
- var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
2853
- var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
2854
- if (args.length < 1) throw new Error("Waterfall hooks must have at least one argument");
2855
- var hook = new Hook(args, name);
2856
- hook.constructor = SyncWaterfallHook;
2857
- hook.tapAsync = TAP_ASYNC;
2858
- hook.tapPromise = TAP_PROMISE;
2859
- hook.compile = COMPILE;
2860
- return hook;
2861
- }
2862
- SyncWaterfallHook.prototype = null;
2863
- module.exports = SyncWaterfallHook;
2864
-
2865
- /***/ }),
2866
-
2867
- /***/ "./node_modules/tapable/lib/index.js":
2868
- /*!*******************************************!*\
2869
- !*** ./node_modules/tapable/lib/index.js ***!
2870
- \*******************************************/
2871
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2872
-
2873
- /*
2874
- MIT License http://www.opensource.org/licenses/mit-license.php
2875
- Author Tobias Koppers @sokra
2876
- */
2877
-
2878
-
2879
- exports.__esModule = true;
2880
- exports.SyncHook = __webpack_require__(/*! ./SyncHook */ "./node_modules/tapable/lib/SyncHook.js");
2881
- exports.SyncBailHook = __webpack_require__(/*! ./SyncBailHook */ "./node_modules/tapable/lib/SyncBailHook.js");
2882
- exports.SyncWaterfallHook = __webpack_require__(/*! ./SyncWaterfallHook */ "./node_modules/tapable/lib/SyncWaterfallHook.js");
2883
- exports.SyncLoopHook = __webpack_require__(/*! ./SyncLoopHook */ "./node_modules/tapable/lib/SyncLoopHook.js");
2884
- exports.AsyncParallelHook = __webpack_require__(/*! ./AsyncParallelHook */ "./node_modules/tapable/lib/AsyncParallelHook.js");
2885
- exports.AsyncParallelBailHook = __webpack_require__(/*! ./AsyncParallelBailHook */ "./node_modules/tapable/lib/AsyncParallelBailHook.js");
2886
- exports.AsyncSeriesHook = __webpack_require__(/*! ./AsyncSeriesHook */ "./node_modules/tapable/lib/AsyncSeriesHook.js");
2887
- exports.AsyncSeriesBailHook = __webpack_require__(/*! ./AsyncSeriesBailHook */ "./node_modules/tapable/lib/AsyncSeriesBailHook.js");
2888
- exports.AsyncSeriesLoopHook = __webpack_require__(/*! ./AsyncSeriesLoopHook */ "./node_modules/tapable/lib/AsyncSeriesLoopHook.js");
2889
- exports.AsyncSeriesWaterfallHook = __webpack_require__(/*! ./AsyncSeriesWaterfallHook */ "./node_modules/tapable/lib/AsyncSeriesWaterfallHook.js");
2890
- exports.HookMap = __webpack_require__(/*! ./HookMap */ "./node_modules/tapable/lib/HookMap.js");
2891
- exports.MultiHook = __webpack_require__(/*! ./MultiHook */ "./node_modules/tapable/lib/MultiHook.js");
2892
-
2893
- /***/ }),
2894
-
2895
- /***/ "./node_modules/tapable/lib/util-browser.js":
2896
- /*!**************************************************!*\
2897
- !*** ./node_modules/tapable/lib/util-browser.js ***!
2898
- \**************************************************/
2899
- /***/ (function(__unused_webpack_module, exports) {
2900
-
2901
- /*
2902
- MIT License http://www.opensource.org/licenses/mit-license.php
2903
- Author Tobias Koppers @sokra
2904
- */
2905
20
 
21
+ /**
22
+ * Client stub for tapable SyncBailHook
23
+ */
24
+ // eslint-disable-next-line import/prefer-default-export
2906
25
 
2907
- exports.deprecate = function (fn, msg) {
2908
- var once = true;
2909
- return function () {
2910
- if (once) {
2911
- console.warn("DeprecationWarning: " + msg);
2912
- once = false;
2913
- }
2914
- return fn.apply(this, arguments);
2915
- };
2916
- };
2917
26
 
2918
27
  /***/ }),
2919
28
 
@@ -3490,7 +599,7 @@ function _extends() {
3490
599
  };
3491
600
  return _extends.apply(this, arguments);
3492
601
  }
3493
- var _require = __webpack_require__(/*! tapable */ "./node_modules/tapable/lib/index.js"),
602
+ var _require = __webpack_require__(/*! tapable */ "./client-src/modules/logger/tapable.js"),
3494
603
  SyncBailHook = _require.SyncBailHook;
3495
604
  var _require2 = __webpack_require__(/*! ./Logger */ "./node_modules/webpack/lib/logging/Logger.js"),
3496
605
  Logger = _require2.Logger;