@rsbuild/core 1.3.21 → 1.4.0-beta.0
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.
- package/README.md +2 -2
- package/compiled/css-loader/index.js +44 -44
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss/index.js +189 -144
- package/compiled/postcss/lib/input.d.ts +24 -3
- package/compiled/postcss/lib/node.d.ts +17 -2
- package/compiled/postcss/lib/stringifier.d.ts +2 -2
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +10 -10
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rsbuild-dev-middleware/index.js +115 -125
- package/compiled/rspack-chain/index.js +67 -67
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/types/index.d.ts +1 -0
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/sirv/index.js +12 -6
- package/compiled/style-loader/index.js +10 -10
- package/compiled/tinyglobby/index.d.ts +35 -16
- package/compiled/tinyglobby/index.js +517 -531
- package/compiled/tinyglobby/package.json +1 -1
- package/compiled/webpack-bundle-analyzer/index.js +62 -46
- package/dist/index.cjs +274 -236
- package/dist/index.js +233 -227
- package/dist-types/cli/commands.d.ts +1 -1
- package/dist-types/defaultConfig.d.ts +26 -0
- package/dist-types/index.d.ts +2 -2
- package/dist-types/{config.d.ts → loadConfig.d.ts} +9 -34
- package/dist-types/pluginHelper.d.ts +1 -1
- package/dist-types/plugins/minimize.d.ts +1 -1
- package/dist-types/server/cliShortcuts.d.ts +2 -2
- package/dist-types/server/helper.d.ts +2 -2
- package/dist-types/server/runner/asModule.d.ts +2 -2
- package/dist-types/types/config.d.ts +41 -20
- package/dist-types/types/hooks.d.ts +1 -1
- package/dist-types/types/plugin.d.ts +18 -18
- package/dist-types/types/rsbuild.d.ts +2 -2
- package/package.json +11 -10
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
2827: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
56
56
|
"use strict";
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
58
|
exports.Dir = void 0;
|
|
59
|
-
const util_1 = __nccwpck_require__(
|
|
60
|
-
const Dirent_1 = __nccwpck_require__(
|
|
59
|
+
const util_1 = __nccwpck_require__(2781);
|
|
60
|
+
const Dirent_1 = __nccwpck_require__(1010);
|
|
61
61
|
class Dir {
|
|
62
62
|
constructor(link, options) {
|
|
63
63
|
this.link = link;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
wrapAsync(method, args, callback) {
|
|
70
70
|
(0, util_1.validateCallback)(callback);
|
|
71
|
-
|
|
71
|
+
Promise.resolve().then(() => {
|
|
72
72
|
let result;
|
|
73
73
|
try {
|
|
74
74
|
result = method.apply(this, args);
|
|
@@ -178,12 +178,12 @@
|
|
|
178
178
|
}
|
|
179
179
|
exports.Dir = Dir;
|
|
180
180
|
},
|
|
181
|
-
|
|
181
|
+
1010: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
182
182
|
"use strict";
|
|
183
183
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
184
184
|
exports.Dirent = void 0;
|
|
185
|
-
const constants_1 = __nccwpck_require__(
|
|
186
|
-
const encoding_1 = __nccwpck_require__(
|
|
185
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
186
|
+
const encoding_1 = __nccwpck_require__(6991);
|
|
187
187
|
const {
|
|
188
188
|
S_IFMT,
|
|
189
189
|
S_IFDIR,
|
|
@@ -238,11 +238,11 @@
|
|
|
238
238
|
exports.Dirent = Dirent;
|
|
239
239
|
exports["default"] = Dirent;
|
|
240
240
|
},
|
|
241
|
-
|
|
241
|
+
2635: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
242
242
|
"use strict";
|
|
243
243
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
244
244
|
exports.Stats = void 0;
|
|
245
|
-
const constants_1 = __nccwpck_require__(
|
|
245
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
246
246
|
const {
|
|
247
247
|
S_IFMT,
|
|
248
248
|
S_IFDIR,
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
exports.Stats = Stats;
|
|
317
317
|
exports["default"] = Stats;
|
|
318
318
|
},
|
|
319
|
-
|
|
319
|
+
6933: (__unused_webpack_module, exports) => {
|
|
320
320
|
"use strict";
|
|
321
321
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
322
322
|
exports.constants = void 0;
|
|
@@ -370,14 +370,14 @@
|
|
|
370
370
|
COPYFILE_FICLONE_FORCE: 4,
|
|
371
371
|
};
|
|
372
372
|
},
|
|
373
|
-
|
|
373
|
+
6991: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
374
374
|
"use strict";
|
|
375
375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
376
376
|
exports.ENCODING_UTF8 = void 0;
|
|
377
377
|
exports.assertEncoding = assertEncoding;
|
|
378
378
|
exports.strToEncoding = strToEncoding;
|
|
379
|
-
const buffer_1 = __nccwpck_require__(
|
|
380
|
-
const errors = __nccwpck_require__(
|
|
379
|
+
const buffer_1 = __nccwpck_require__(4304);
|
|
380
|
+
const errors = __nccwpck_require__(7393);
|
|
381
381
|
exports.ENCODING_UTF8 = "utf8";
|
|
382
382
|
function assertEncoding(encoding) {
|
|
383
383
|
if (encoding && !buffer_1.Buffer.isEncoding(encoding))
|
|
@@ -392,19 +392,24 @@
|
|
|
392
392
|
return new buffer_1.Buffer(str).toString(encoding);
|
|
393
393
|
}
|
|
394
394
|
},
|
|
395
|
-
|
|
395
|
+
8672: (module, exports, __nccwpck_require__) => {
|
|
396
396
|
"use strict";
|
|
397
397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
398
398
|
exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
|
|
399
399
|
exports.createFsFromVolume = createFsFromVolume;
|
|
400
|
-
const Stats_1 = __nccwpck_require__(
|
|
401
|
-
const Dirent_1 = __nccwpck_require__(
|
|
402
|
-
const volume_1 = __nccwpck_require__(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
400
|
+
const Stats_1 = __nccwpck_require__(2635);
|
|
401
|
+
const Dirent_1 = __nccwpck_require__(1010);
|
|
402
|
+
const volume_1 = __nccwpck_require__(1372);
|
|
403
|
+
Object.defineProperty(exports, "Volume", {
|
|
404
|
+
enumerable: true,
|
|
405
|
+
get: function () {
|
|
406
|
+
return volume_1.Volume;
|
|
407
|
+
},
|
|
408
|
+
});
|
|
409
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
410
|
+
const fsSynchronousApiList_1 = __nccwpck_require__(9715);
|
|
411
|
+
const fsCallbackApiList_1 = __nccwpck_require__(6215);
|
|
406
412
|
const { F_OK, R_OK, W_OK, X_OK } = constants_1.constants;
|
|
407
|
-
exports.Volume = volume_1.Volume;
|
|
408
413
|
exports.vol = new volume_1.Volume();
|
|
409
414
|
function createFsFromVolume(vol) {
|
|
410
415
|
const fs = {
|
|
@@ -433,7 +438,7 @@
|
|
|
433
438
|
}
|
|
434
439
|
exports.fs = createFsFromVolume(exports.vol);
|
|
435
440
|
const memfs = (json = {}, cwd = "/") => {
|
|
436
|
-
const vol =
|
|
441
|
+
const vol = volume_1.Volume.fromNestedJSON(json, cwd);
|
|
437
442
|
const fs = createFsFromVolume(vol);
|
|
438
443
|
return { fs, vol };
|
|
439
444
|
};
|
|
@@ -444,7 +449,7 @@
|
|
|
444
449
|
);
|
|
445
450
|
module.exports.semantic = true;
|
|
446
451
|
},
|
|
447
|
-
|
|
452
|
+
4304: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
448
453
|
"use strict";
|
|
449
454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
450
455
|
exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
|
|
@@ -464,7 +469,7 @@
|
|
|
464
469
|
const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
|
|
465
470
|
exports.bufferFrom = bufferFrom;
|
|
466
471
|
},
|
|
467
|
-
|
|
472
|
+
7393: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
468
473
|
"use strict";
|
|
469
474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
470
475
|
exports.AssertionError =
|
|
@@ -743,7 +748,7 @@
|
|
|
743
748
|
}
|
|
744
749
|
}
|
|
745
750
|
},
|
|
746
|
-
|
|
751
|
+
2656: (__unused_webpack_module, exports) => {
|
|
747
752
|
"use strict";
|
|
748
753
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
749
754
|
exports.newNotAllowedError =
|
|
@@ -799,15 +804,15 @@
|
|
|
799
804
|
new DOMException("Permission not granted.", "NotAllowedError");
|
|
800
805
|
exports.newNotAllowedError = newNotAllowedError;
|
|
801
806
|
},
|
|
802
|
-
|
|
807
|
+
142: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
803
808
|
"use strict";
|
|
804
809
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
805
810
|
exports.File = exports.Link = exports.Node = exports.SEP = void 0;
|
|
806
|
-
const process_1 = __nccwpck_require__(
|
|
807
|
-
const buffer_1 = __nccwpck_require__(
|
|
808
|
-
const constants_1 = __nccwpck_require__(
|
|
811
|
+
const process_1 = __nccwpck_require__(1333);
|
|
812
|
+
const buffer_1 = __nccwpck_require__(4304);
|
|
813
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
809
814
|
const events_1 = __nccwpck_require__(4434);
|
|
810
|
-
const Stats_1 = __nccwpck_require__(
|
|
815
|
+
const Stats_1 = __nccwpck_require__(2635);
|
|
811
816
|
const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR, O_APPEND } =
|
|
812
817
|
constants_1.constants;
|
|
813
818
|
const getuid = () => {
|
|
@@ -1199,11 +1204,11 @@
|
|
|
1199
1204
|
}
|
|
1200
1205
|
exports.File = File;
|
|
1201
1206
|
},
|
|
1202
|
-
|
|
1207
|
+
2505: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1203
1208
|
"use strict";
|
|
1204
1209
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1205
1210
|
exports.FileHandle = void 0;
|
|
1206
|
-
const util_1 = __nccwpck_require__(
|
|
1211
|
+
const util_1 = __nccwpck_require__(2781);
|
|
1207
1212
|
class FileHandle {
|
|
1208
1213
|
constructor(fs, fd) {
|
|
1209
1214
|
this.fs = fs;
|
|
@@ -1302,12 +1307,12 @@
|
|
|
1302
1307
|
}
|
|
1303
1308
|
exports.FileHandle = FileHandle;
|
|
1304
1309
|
},
|
|
1305
|
-
|
|
1310
|
+
9916: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1306
1311
|
"use strict";
|
|
1307
1312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1308
1313
|
exports.FsPromises = void 0;
|
|
1309
|
-
const util_1 = __nccwpck_require__(
|
|
1310
|
-
const constants_1 = __nccwpck_require__(
|
|
1314
|
+
const util_1 = __nccwpck_require__(2781);
|
|
1315
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
1311
1316
|
class FsPromises {
|
|
1312
1317
|
constructor(fs, FileHandle) {
|
|
1313
1318
|
this.fs = fs;
|
|
@@ -1374,11 +1379,11 @@
|
|
|
1374
1379
|
}
|
|
1375
1380
|
exports.FsPromises = FsPromises;
|
|
1376
1381
|
},
|
|
1377
|
-
|
|
1382
|
+
7892: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1378
1383
|
"use strict";
|
|
1379
1384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1380
1385
|
exports.FLAGS = exports.ERRSTR = void 0;
|
|
1381
|
-
const constants_1 = __nccwpck_require__(
|
|
1386
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
1382
1387
|
exports.ERRSTR = {
|
|
1383
1388
|
PATH_STR: "path must be a string, Buffer, or Uint8Array",
|
|
1384
1389
|
FD: "fd must be a file descriptor",
|
|
@@ -1427,7 +1432,7 @@
|
|
|
1427
1432
|
FLAGS[(FLAGS["xa+"] = FLAGS["ax+"])] = "xa+";
|
|
1428
1433
|
})(FLAGS || (exports.FLAGS = FLAGS = {}));
|
|
1429
1434
|
},
|
|
1430
|
-
|
|
1435
|
+
6215: (__unused_webpack_module, exports) => {
|
|
1431
1436
|
"use strict";
|
|
1432
1437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1433
1438
|
exports.fsCallbackApiList = void 0;
|
|
@@ -1478,7 +1483,7 @@
|
|
|
1478
1483
|
"writeFile",
|
|
1479
1484
|
];
|
|
1480
1485
|
},
|
|
1481
|
-
|
|
1486
|
+
9715: (__unused_webpack_module, exports) => {
|
|
1482
1487
|
"use strict";
|
|
1483
1488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1484
1489
|
exports.fsSynchronousApiList = void 0;
|
|
@@ -1524,7 +1529,7 @@
|
|
|
1524
1529
|
"writevSync",
|
|
1525
1530
|
];
|
|
1526
1531
|
},
|
|
1527
|
-
|
|
1532
|
+
9231: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1528
1533
|
"use strict";
|
|
1529
1534
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1530
1535
|
exports.getWriteFileOptions =
|
|
@@ -1550,9 +1555,9 @@
|
|
|
1550
1555
|
exports.getOptions = getOptions;
|
|
1551
1556
|
exports.optsGenerator = optsGenerator;
|
|
1552
1557
|
exports.optsAndCbGenerator = optsAndCbGenerator;
|
|
1553
|
-
const constants_1 = __nccwpck_require__(
|
|
1554
|
-
const encoding_1 = __nccwpck_require__(
|
|
1555
|
-
const util_1 = __nccwpck_require__(
|
|
1558
|
+
const constants_1 = __nccwpck_require__(7892);
|
|
1559
|
+
const encoding_1 = __nccwpck_require__(6991);
|
|
1560
|
+
const util_1 = __nccwpck_require__(2781);
|
|
1556
1561
|
const mkdirDefaults = { mode: 511, recursive: false };
|
|
1557
1562
|
const getMkdirOptions = (options) => {
|
|
1558
1563
|
if (typeof options === "number")
|
|
@@ -1653,7 +1658,7 @@
|
|
|
1653
1658
|
};
|
|
1654
1659
|
exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
|
|
1655
1660
|
},
|
|
1656
|
-
|
|
1661
|
+
2781: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1657
1662
|
"use strict";
|
|
1658
1663
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1659
1664
|
exports.unixify =
|
|
@@ -1676,12 +1681,12 @@
|
|
|
1676
1681
|
exports.dataToBuffer = dataToBuffer;
|
|
1677
1682
|
exports.bufferToEncoding = bufferToEncoding;
|
|
1678
1683
|
exports.isReadableStream = isReadableStream;
|
|
1679
|
-
const constants_1 = __nccwpck_require__(
|
|
1680
|
-
const errors = __nccwpck_require__(
|
|
1681
|
-
const buffer_1 = __nccwpck_require__(
|
|
1682
|
-
const encoding_1 = __nccwpck_require__(
|
|
1683
|
-
const buffer_2 = __nccwpck_require__(
|
|
1684
|
-
const queueMicrotask_1 = __nccwpck_require__(
|
|
1684
|
+
const constants_1 = __nccwpck_require__(7892);
|
|
1685
|
+
const errors = __nccwpck_require__(7393);
|
|
1686
|
+
const buffer_1 = __nccwpck_require__(4304);
|
|
1687
|
+
const encoding_1 = __nccwpck_require__(6991);
|
|
1688
|
+
const buffer_2 = __nccwpck_require__(4304);
|
|
1689
|
+
const queueMicrotask_1 = __nccwpck_require__(6978);
|
|
1685
1690
|
exports.isWin = process.platform === "win32";
|
|
1686
1691
|
function promisify(fs, fn, getResult = (input) => input) {
|
|
1687
1692
|
return (...args) =>
|
|
@@ -1977,12 +1982,12 @@
|
|
|
1977
1982
|
};
|
|
1978
1983
|
exports.unixify = unixify;
|
|
1979
1984
|
},
|
|
1980
|
-
|
|
1985
|
+
3592: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1981
1986
|
"use strict";
|
|
1982
1987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1983
1988
|
exports.toTreeSync = void 0;
|
|
1984
|
-
const tree_dump_1 = __nccwpck_require__(
|
|
1985
|
-
const util_1 = __nccwpck_require__(
|
|
1989
|
+
const tree_dump_1 = __nccwpck_require__(9752);
|
|
1990
|
+
const util_1 = __nccwpck_require__(2656);
|
|
1986
1991
|
const toTreeSync = (fs, opts = {}) => {
|
|
1987
1992
|
var _a;
|
|
1988
1993
|
const separator = opts.separator || "/";
|
|
@@ -2017,7 +2022,7 @@
|
|
|
2017
2022
|
};
|
|
2018
2023
|
exports.toTreeSync = toTreeSync;
|
|
2019
2024
|
},
|
|
2020
|
-
|
|
2025
|
+
1333: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
2021
2026
|
"use strict";
|
|
2022
2027
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2023
2028
|
exports.createProcess = createProcess;
|
|
@@ -2043,7 +2048,7 @@
|
|
|
2043
2048
|
}
|
|
2044
2049
|
exports["default"] = createProcess();
|
|
2045
2050
|
},
|
|
2046
|
-
|
|
2051
|
+
6978: (__unused_webpack_module, exports) => {
|
|
2047
2052
|
"use strict";
|
|
2048
2053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2049
2054
|
exports["default"] =
|
|
@@ -2054,21 +2059,7 @@
|
|
|
2054
2059
|
.then(() => cb())
|
|
2055
2060
|
.catch(() => {});
|
|
2056
2061
|
},
|
|
2057
|
-
|
|
2058
|
-
"use strict";
|
|
2059
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2060
|
-
let _setImmediate;
|
|
2061
|
-
if (typeof setImmediate === "function")
|
|
2062
|
-
_setImmediate = setImmediate.bind(
|
|
2063
|
-
typeof globalThis !== "undefined" ? globalThis : global,
|
|
2064
|
-
);
|
|
2065
|
-
else
|
|
2066
|
-
_setImmediate = setTimeout.bind(
|
|
2067
|
-
typeof globalThis !== "undefined" ? globalThis : global,
|
|
2068
|
-
);
|
|
2069
|
-
exports["default"] = _setImmediate;
|
|
2070
|
-
},
|
|
2071
|
-
1523: (__unused_webpack_module, exports) => {
|
|
2062
|
+
997: (__unused_webpack_module, exports) => {
|
|
2072
2063
|
"use strict";
|
|
2073
2064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2074
2065
|
function setTimeoutUnref(callback, time, args) {
|
|
@@ -2082,7 +2073,7 @@
|
|
|
2082
2073
|
}
|
|
2083
2074
|
exports["default"] = setTimeoutUnref;
|
|
2084
2075
|
},
|
|
2085
|
-
|
|
2076
|
+
1372: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
2086
2077
|
"use strict";
|
|
2087
2078
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2088
2079
|
exports.FSWatcher = exports.StatWatcher = exports.Volume = void 0;
|
|
@@ -2091,26 +2082,25 @@
|
|
|
2091
2082
|
exports.dataToStr = dataToStr;
|
|
2092
2083
|
exports.toUnixTimestamp = toUnixTimestamp;
|
|
2093
2084
|
const pathModule = __nccwpck_require__(6928);
|
|
2094
|
-
const node_1 = __nccwpck_require__(
|
|
2095
|
-
const Stats_1 = __nccwpck_require__(
|
|
2096
|
-
const Dirent_1 = __nccwpck_require__(
|
|
2097
|
-
const buffer_1 = __nccwpck_require__(
|
|
2098
|
-
const
|
|
2099
|
-
const
|
|
2100
|
-
const
|
|
2101
|
-
const setTimeoutUnref_1 = __nccwpck_require__(1523);
|
|
2085
|
+
const node_1 = __nccwpck_require__(142);
|
|
2086
|
+
const Stats_1 = __nccwpck_require__(2635);
|
|
2087
|
+
const Dirent_1 = __nccwpck_require__(1010);
|
|
2088
|
+
const buffer_1 = __nccwpck_require__(4304);
|
|
2089
|
+
const queueMicrotask_1 = __nccwpck_require__(6978);
|
|
2090
|
+
const process_1 = __nccwpck_require__(1333);
|
|
2091
|
+
const setTimeoutUnref_1 = __nccwpck_require__(997);
|
|
2102
2092
|
const stream_1 = __nccwpck_require__(2203);
|
|
2103
|
-
const constants_1 = __nccwpck_require__(
|
|
2093
|
+
const constants_1 = __nccwpck_require__(6933);
|
|
2104
2094
|
const events_1 = __nccwpck_require__(4434);
|
|
2105
|
-
const encoding_1 = __nccwpck_require__(
|
|
2106
|
-
const FileHandle_1 = __nccwpck_require__(
|
|
2095
|
+
const encoding_1 = __nccwpck_require__(6991);
|
|
2096
|
+
const FileHandle_1 = __nccwpck_require__(2505);
|
|
2107
2097
|
const util = __nccwpck_require__(9023);
|
|
2108
|
-
const FsPromises_1 = __nccwpck_require__(
|
|
2109
|
-
const print_1 = __nccwpck_require__(
|
|
2110
|
-
const constants_2 = __nccwpck_require__(
|
|
2111
|
-
const options_1 = __nccwpck_require__(
|
|
2112
|
-
const util_1 = __nccwpck_require__(
|
|
2113
|
-
const Dir_1 = __nccwpck_require__(
|
|
2098
|
+
const FsPromises_1 = __nccwpck_require__(9916);
|
|
2099
|
+
const print_1 = __nccwpck_require__(3592);
|
|
2100
|
+
const constants_2 = __nccwpck_require__(7892);
|
|
2101
|
+
const options_1 = __nccwpck_require__(9231);
|
|
2102
|
+
const util_1 = __nccwpck_require__(2781);
|
|
2103
|
+
const Dir_1 = __nccwpck_require__(2827);
|
|
2114
2104
|
const resolveCrossPlatform = pathModule.resolve;
|
|
2115
2105
|
const {
|
|
2116
2106
|
O_RDONLY,
|
|
@@ -2433,7 +2423,7 @@
|
|
|
2433
2423
|
}
|
|
2434
2424
|
wrapAsync(method, args, callback) {
|
|
2435
2425
|
(0, util_1.validateCallback)(callback);
|
|
2436
|
-
(
|
|
2426
|
+
Promise.resolve().then(() => {
|
|
2437
2427
|
let result;
|
|
2438
2428
|
try {
|
|
2439
2429
|
result = method.apply(this, args);
|
|
@@ -2704,7 +2694,7 @@
|
|
|
2704
2694
|
if (callback) callback(null, 0, buffer);
|
|
2705
2695
|
});
|
|
2706
2696
|
}
|
|
2707
|
-
(
|
|
2697
|
+
Promise.resolve().then(() => {
|
|
2708
2698
|
try {
|
|
2709
2699
|
const bytes = this.readBase(fd, buffer, offset, length, position);
|
|
2710
2700
|
callback(null, bytes, buffer);
|
|
@@ -2737,7 +2727,7 @@
|
|
|
2737
2727
|
callback = a;
|
|
2738
2728
|
}
|
|
2739
2729
|
(0, util_1.validateCallback)(callback);
|
|
2740
|
-
(
|
|
2730
|
+
Promise.resolve().then(() => {
|
|
2741
2731
|
try {
|
|
2742
2732
|
const bytes = this.readvBase(fd, buffers, position);
|
|
2743
2733
|
callback(null, bytes, buffers);
|
|
@@ -2814,7 +2804,7 @@
|
|
|
2814
2804
|
write(fd, a, b, c, d, e) {
|
|
2815
2805
|
const [, asStr, buf, offset, length, position, cb] = (0,
|
|
2816
2806
|
util_1.getWriteArgs)(fd, a, b, c, d, e);
|
|
2817
|
-
(
|
|
2807
|
+
Promise.resolve().then(() => {
|
|
2818
2808
|
try {
|
|
2819
2809
|
const bytes = this.writeBase(fd, buf, offset, length, position);
|
|
2820
2810
|
if (!asStr) {
|
|
@@ -2856,7 +2846,7 @@
|
|
|
2856
2846
|
callback = a;
|
|
2857
2847
|
}
|
|
2858
2848
|
(0, util_1.validateCallback)(callback);
|
|
2859
|
-
(
|
|
2849
|
+
Promise.resolve().then(() => {
|
|
2860
2850
|
try {
|
|
2861
2851
|
const bytes = this.writevBase(fd, buffers, position);
|
|
2862
2852
|
callback(null, bytes, buffers);
|
|
@@ -3240,7 +3230,7 @@
|
|
|
3240
3230
|
const filename = (0, util_1.pathToFilename)(path);
|
|
3241
3231
|
if (typeof callback !== "function")
|
|
3242
3232
|
throw Error(constants_2.ERRSTR.CB);
|
|
3243
|
-
(
|
|
3233
|
+
Promise.resolve().then(() => {
|
|
3244
3234
|
try {
|
|
3245
3235
|
callback(this.existsBase(filename));
|
|
3246
3236
|
} catch (err) {
|
|
@@ -4449,15 +4439,15 @@
|
|
|
4449
4439
|
return a.start - b.start;
|
|
4450
4440
|
}
|
|
4451
4441
|
},
|
|
4452
|
-
|
|
4442
|
+
9185: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4453
4443
|
"use strict";
|
|
4454
4444
|
const { logger } = __nccwpck_require__(8679);
|
|
4455
|
-
const middleware = __nccwpck_require__(
|
|
4456
|
-
const getFilenameFromUrl = __nccwpck_require__(
|
|
4457
|
-
const setupHooks = __nccwpck_require__(
|
|
4458
|
-
const setupWriteToDisk = __nccwpck_require__(
|
|
4459
|
-
const setupOutputFileSystem = __nccwpck_require__(
|
|
4460
|
-
const ready = __nccwpck_require__(
|
|
4445
|
+
const middleware = __nccwpck_require__(3437);
|
|
4446
|
+
const getFilenameFromUrl = __nccwpck_require__(477);
|
|
4447
|
+
const setupHooks = __nccwpck_require__(7632);
|
|
4448
|
+
const setupWriteToDisk = __nccwpck_require__(8683);
|
|
4449
|
+
const setupOutputFileSystem = __nccwpck_require__(1296);
|
|
4450
|
+
const ready = __nccwpck_require__(3676);
|
|
4461
4451
|
const noop = () => {};
|
|
4462
4452
|
function wdm(compiler, options = {}) {
|
|
4463
4453
|
const context = {
|
|
@@ -4514,15 +4504,15 @@
|
|
|
4514
4504
|
}
|
|
4515
4505
|
module.exports = wdm;
|
|
4516
4506
|
},
|
|
4517
|
-
|
|
4507
|
+
3437: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4518
4508
|
"use strict";
|
|
4519
4509
|
const mrmime = __nccwpck_require__(8311);
|
|
4520
4510
|
const { logger } = __nccwpck_require__(8679);
|
|
4521
4511
|
const onFinishedStream = __nccwpck_require__(21);
|
|
4522
|
-
const getFilenameFromUrl = __nccwpck_require__(
|
|
4523
|
-
const ready = __nccwpck_require__(
|
|
4524
|
-
const parseTokenList = __nccwpck_require__(
|
|
4525
|
-
const memorize = __nccwpck_require__(
|
|
4512
|
+
const getFilenameFromUrl = __nccwpck_require__(477);
|
|
4513
|
+
const ready = __nccwpck_require__(3676);
|
|
4514
|
+
const parseTokenList = __nccwpck_require__(7579);
|
|
4515
|
+
const memorize = __nccwpck_require__(4821);
|
|
4526
4516
|
async function getEtag(stat) {
|
|
4527
4517
|
const mtime = stat.mtime.getTime().toString(16);
|
|
4528
4518
|
const size = stat.size.toString(16);
|
|
@@ -4614,7 +4604,7 @@
|
|
|
4614
4604
|
return;
|
|
4615
4605
|
}
|
|
4616
4606
|
function sendError(status, options) {
|
|
4617
|
-
const escapeHtml = __nccwpck_require__(
|
|
4607
|
+
const escapeHtml = __nccwpck_require__(8081);
|
|
4618
4608
|
const content = statuses[status] || String(status);
|
|
4619
4609
|
const document = Buffer.from(
|
|
4620
4610
|
`<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>${escapeHtml(content)}</pre>\n</body>\n</html>`,
|
|
@@ -4923,7 +4913,7 @@
|
|
|
4923
4913
|
}
|
|
4924
4914
|
module.exports = wrapper;
|
|
4925
4915
|
},
|
|
4926
|
-
|
|
4916
|
+
8081: (module) => {
|
|
4927
4917
|
"use strict";
|
|
4928
4918
|
const matchHtmlRegExp = /["'&<>]/;
|
|
4929
4919
|
function escapeHtml(string) {
|
|
@@ -4968,13 +4958,13 @@
|
|
|
4968
4958
|
}
|
|
4969
4959
|
module.exports = escapeHtml;
|
|
4970
4960
|
},
|
|
4971
|
-
|
|
4961
|
+
477: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4972
4962
|
"use strict";
|
|
4973
4963
|
const path = __nccwpck_require__(6928);
|
|
4974
4964
|
const { parse } = __nccwpck_require__(7016);
|
|
4975
4965
|
const querystring = __nccwpck_require__(3480);
|
|
4976
|
-
const getPaths = __nccwpck_require__(
|
|
4977
|
-
const memorize = __nccwpck_require__(
|
|
4966
|
+
const getPaths = __nccwpck_require__(871);
|
|
4967
|
+
const memorize = __nccwpck_require__(4821);
|
|
4978
4968
|
const memoizedParse = memorize(parse, undefined, (value) => {
|
|
4979
4969
|
if (value.pathname) {
|
|
4980
4970
|
value.pathname = decode(value.pathname);
|
|
@@ -5057,7 +5047,7 @@
|
|
|
5057
5047
|
}
|
|
5058
5048
|
module.exports = getFilenameFromUrl;
|
|
5059
5049
|
},
|
|
5060
|
-
|
|
5050
|
+
871: (module) => {
|
|
5061
5051
|
"use strict";
|
|
5062
5052
|
function getPaths(context) {
|
|
5063
5053
|
const { stats, options } = context;
|
|
@@ -5078,7 +5068,7 @@
|
|
|
5078
5068
|
}
|
|
5079
5069
|
module.exports = getPaths;
|
|
5080
5070
|
},
|
|
5081
|
-
|
|
5071
|
+
4821: (module) => {
|
|
5082
5072
|
"use strict";
|
|
5083
5073
|
const cacheStore = new WeakMap();
|
|
5084
5074
|
function memorize(fn, { cache = new Map() } = {}, callback) {
|
|
@@ -5100,7 +5090,7 @@
|
|
|
5100
5090
|
}
|
|
5101
5091
|
module.exports = memorize;
|
|
5102
5092
|
},
|
|
5103
|
-
|
|
5093
|
+
7579: (module) => {
|
|
5104
5094
|
"use strict";
|
|
5105
5095
|
function parseTokenList(str) {
|
|
5106
5096
|
let end = 0;
|
|
@@ -5133,7 +5123,7 @@
|
|
|
5133
5123
|
}
|
|
5134
5124
|
module.exports = parseTokenList;
|
|
5135
5125
|
},
|
|
5136
|
-
|
|
5126
|
+
3676: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5137
5127
|
"use strict";
|
|
5138
5128
|
const { logger } = __nccwpck_require__(8679);
|
|
5139
5129
|
function ready(context, callback, req) {
|
|
@@ -5149,7 +5139,7 @@
|
|
|
5149
5139
|
}
|
|
5150
5140
|
module.exports = ready;
|
|
5151
5141
|
},
|
|
5152
|
-
|
|
5142
|
+
7632: (module) => {
|
|
5153
5143
|
"use strict";
|
|
5154
5144
|
function setupHooks(context) {
|
|
5155
5145
|
function invalid() {
|
|
@@ -5177,9 +5167,9 @@
|
|
|
5177
5167
|
}
|
|
5178
5168
|
module.exports = setupHooks;
|
|
5179
5169
|
},
|
|
5180
|
-
|
|
5170
|
+
1296: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5181
5171
|
"use strict";
|
|
5182
|
-
const memfs = __nccwpck_require__(
|
|
5172
|
+
const memfs = __nccwpck_require__(8672);
|
|
5183
5173
|
function setupOutputFileSystem(context) {
|
|
5184
5174
|
let outputFileSystem;
|
|
5185
5175
|
if (context.options.writeToDisk !== true) {
|
|
@@ -5204,7 +5194,7 @@
|
|
|
5204
5194
|
}
|
|
5205
5195
|
module.exports = setupOutputFileSystem;
|
|
5206
5196
|
},
|
|
5207
|
-
|
|
5197
|
+
8683: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5208
5198
|
"use strict";
|
|
5209
5199
|
const fs = __nccwpck_require__(9896);
|
|
5210
5200
|
const path = __nccwpck_require__(6928);
|
|
@@ -5260,14 +5250,14 @@
|
|
|
5260
5250
|
}
|
|
5261
5251
|
module.exports = setupWriteToDisk;
|
|
5262
5252
|
},
|
|
5263
|
-
|
|
5253
|
+
9752: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5264
5254
|
"use strict";
|
|
5265
5255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5266
5256
|
const tslib_1 = __nccwpck_require__(5477);
|
|
5267
|
-
tslib_1.__exportStar(__nccwpck_require__(
|
|
5268
|
-
tslib_1.__exportStar(__nccwpck_require__(
|
|
5257
|
+
tslib_1.__exportStar(__nccwpck_require__(8583), exports);
|
|
5258
|
+
tslib_1.__exportStar(__nccwpck_require__(1574), exports);
|
|
5269
5259
|
},
|
|
5270
|
-
|
|
5260
|
+
1574: (__unused_webpack_module, exports) => {
|
|
5271
5261
|
"use strict";
|
|
5272
5262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5273
5263
|
exports.printBinary = void 0;
|
|
@@ -5281,7 +5271,7 @@
|
|
|
5281
5271
|
};
|
|
5282
5272
|
exports.printBinary = printBinary;
|
|
5283
5273
|
},
|
|
5284
|
-
|
|
5274
|
+
8583: (__unused_webpack_module, exports) => {
|
|
5285
5275
|
"use strict";
|
|
5286
5276
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5287
5277
|
exports.printTree = void 0;
|
|
@@ -6195,6 +6185,6 @@
|
|
|
6195
6185
|
}
|
|
6196
6186
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6197
6187
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6198
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6188
|
+
var __webpack_exports__ = __nccwpck_require__(9185);
|
|
6199
6189
|
module.exports = __webpack_exports__;
|
|
6200
6190
|
})();
|