@rspack/core 1.3.14 → 1.3.15
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,7 +2,7 @@
|
|
2
2
|
/******/ "use strict";
|
3
3
|
/******/ var __webpack_modules__ = ({
|
4
4
|
|
5
|
-
/***/
|
5
|
+
/***/ 762:
|
6
6
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
7
7
|
|
8
8
|
/*
|
@@ -12,15 +12,15 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
const Source = __nccwpck_require__(
|
16
|
-
const streamAndGetSourceAndMap = __nccwpck_require__(
|
17
|
-
const streamChunksOfRawSource = __nccwpck_require__(
|
18
|
-
const streamChunksOfSourceMap = __nccwpck_require__(
|
15
|
+
const Source = __nccwpck_require__(140);
|
16
|
+
const streamAndGetSourceAndMap = __nccwpck_require__(756);
|
17
|
+
const streamChunksOfRawSource = __nccwpck_require__(689);
|
18
|
+
const streamChunksOfSourceMap = __nccwpck_require__(991);
|
19
19
|
const {
|
20
20
|
isDualStringBufferCachingEnabled
|
21
|
-
} = __nccwpck_require__(
|
21
|
+
} = __nccwpck_require__(751);
|
22
22
|
|
23
|
-
/** @typedef {import("./Source").
|
23
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
24
24
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
25
25
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
26
26
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -357,7 +357,7 @@ class CachedSource extends Source {
|
|
357
357
|
}
|
358
358
|
|
359
359
|
/**
|
360
|
-
* @param {
|
360
|
+
* @param {HashLike} hash hash
|
361
361
|
* @returns {void}
|
362
362
|
*/
|
363
363
|
updateHash(hash) {
|
@@ -394,7 +394,7 @@ class CachedSource extends Source {
|
|
394
394
|
}
|
395
395
|
}
|
396
396
|
};
|
397
|
-
this.original().updateHash(/** @type {
|
397
|
+
this.original().updateHash(/** @type {HashLike} */ (tracker));
|
398
398
|
if (currentString !== undefined) {
|
399
399
|
update.push(Buffer.from(currentString));
|
400
400
|
}
|
@@ -408,7 +408,7 @@ module.exports = CachedSource;
|
|
408
408
|
|
409
409
|
/***/ }),
|
410
410
|
|
411
|
-
/***/
|
411
|
+
/***/ 610:
|
412
412
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
413
413
|
|
414
414
|
/*
|
@@ -418,9 +418,9 @@ module.exports = CachedSource;
|
|
418
418
|
|
419
419
|
|
420
420
|
|
421
|
-
const Source = __nccwpck_require__(
|
421
|
+
const Source = __nccwpck_require__(140);
|
422
422
|
|
423
|
-
/** @typedef {import("./Source").
|
423
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
424
424
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
425
425
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
426
426
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -433,7 +433,7 @@ const Source = __nccwpck_require__(225);
|
|
433
433
|
* @property {(() => number)=} size
|
434
434
|
* @property {((options?: MapOptions) => RawSourceMap | null)=} map
|
435
435
|
* @property {((options?: MapOptions) => SourceAndMap)=} sourceAndMap
|
436
|
-
* @property {((hash:
|
436
|
+
* @property {((hash: HashLike) => void)=} updateHash
|
437
437
|
*/
|
438
438
|
|
439
439
|
class CompatSource extends Source {
|
@@ -499,7 +499,7 @@ class CompatSource extends Source {
|
|
499
499
|
}
|
500
500
|
|
501
501
|
/**
|
502
|
-
* @param {
|
502
|
+
* @param {HashLike} hash hash
|
503
503
|
* @returns {void}
|
504
504
|
*/
|
505
505
|
updateHash(hash) {
|
@@ -520,7 +520,7 @@ module.exports = CompatSource;
|
|
520
520
|
|
521
521
|
/***/ }),
|
522
522
|
|
523
|
-
/***/
|
523
|
+
/***/ 196:
|
524
524
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
525
525
|
|
526
526
|
/*
|
@@ -530,13 +530,13 @@ module.exports = CompatSource;
|
|
530
530
|
|
531
531
|
|
532
532
|
|
533
|
-
const RawSource = __nccwpck_require__(
|
534
|
-
const Source = __nccwpck_require__(
|
535
|
-
const { getMap, getSourceAndMap } = __nccwpck_require__(
|
536
|
-
const streamChunks = __nccwpck_require__(
|
533
|
+
const RawSource = __nccwpck_require__(18);
|
534
|
+
const Source = __nccwpck_require__(140);
|
535
|
+
const { getMap, getSourceAndMap } = __nccwpck_require__(521);
|
536
|
+
const streamChunks = __nccwpck_require__(789);
|
537
537
|
|
538
538
|
/** @typedef {import("./CompatSource").SourceLike} SourceLike */
|
539
|
-
/** @typedef {import("./Source").
|
539
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
540
540
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
541
541
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
542
542
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -818,7 +818,7 @@ class ConcatSource extends Source {
|
|
818
818
|
}
|
819
819
|
|
820
820
|
/**
|
821
|
-
* @param {
|
821
|
+
* @param {HashLike} hash hash
|
822
822
|
* @returns {void}
|
823
823
|
*/
|
824
824
|
updateHash(hash) {
|
@@ -930,7 +930,7 @@ module.exports = ConcatSource;
|
|
930
930
|
|
931
931
|
/***/ }),
|
932
932
|
|
933
|
-
/***/
|
933
|
+
/***/ 971:
|
934
934
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
935
935
|
|
936
936
|
/*
|
@@ -940,16 +940,16 @@ module.exports = ConcatSource;
|
|
940
940
|
|
941
941
|
|
942
942
|
|
943
|
-
const Source = __nccwpck_require__(
|
944
|
-
const { getMap, getSourceAndMap } = __nccwpck_require__(
|
945
|
-
const getGeneratedSourceInfo = __nccwpck_require__(
|
946
|
-
const splitIntoLines = __nccwpck_require__(
|
947
|
-
const splitIntoPotentialTokens = __nccwpck_require__(
|
943
|
+
const Source = __nccwpck_require__(140);
|
944
|
+
const { getMap, getSourceAndMap } = __nccwpck_require__(521);
|
945
|
+
const getGeneratedSourceInfo = __nccwpck_require__(147);
|
946
|
+
const splitIntoLines = __nccwpck_require__(498);
|
947
|
+
const splitIntoPotentialTokens = __nccwpck_require__(225);
|
948
948
|
const {
|
949
949
|
isDualStringBufferCachingEnabled
|
950
|
-
} = __nccwpck_require__(
|
950
|
+
} = __nccwpck_require__(751);
|
951
951
|
|
952
|
-
/** @typedef {import("./Source").
|
952
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
953
953
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
954
954
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
955
955
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -1116,16 +1116,12 @@ class OriginalSource extends Source {
|
|
1116
1116
|
}
|
1117
1117
|
|
1118
1118
|
/**
|
1119
|
-
* @param {
|
1119
|
+
* @param {HashLike} hash hash
|
1120
1120
|
* @returns {void}
|
1121
1121
|
*/
|
1122
1122
|
updateHash(hash) {
|
1123
1123
|
hash.update("OriginalSource");
|
1124
|
-
hash.update(
|
1125
|
-
this._valueAsBuffer
|
1126
|
-
? /** @type {Buffer} */ (this._valueAsBuffer)
|
1127
|
-
: /** @type {string} */ (this._value)
|
1128
|
-
);
|
1124
|
+
hash.update(this.buffer());
|
1129
1125
|
hash.update(this._name || "");
|
1130
1126
|
}
|
1131
1127
|
}
|
@@ -1135,7 +1131,7 @@ module.exports = OriginalSource;
|
|
1135
1131
|
|
1136
1132
|
/***/ }),
|
1137
1133
|
|
1138
|
-
/***/
|
1134
|
+
/***/ 664:
|
1139
1135
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1140
1136
|
|
1141
1137
|
/*
|
@@ -1145,12 +1141,12 @@ module.exports = OriginalSource;
|
|
1145
1141
|
|
1146
1142
|
|
1147
1143
|
|
1148
|
-
const RawSource = __nccwpck_require__(
|
1149
|
-
const Source = __nccwpck_require__(
|
1150
|
-
const { getMap, getSourceAndMap } = __nccwpck_require__(
|
1151
|
-
const streamChunks = __nccwpck_require__(
|
1144
|
+
const RawSource = __nccwpck_require__(18);
|
1145
|
+
const Source = __nccwpck_require__(140);
|
1146
|
+
const { getMap, getSourceAndMap } = __nccwpck_require__(521);
|
1147
|
+
const streamChunks = __nccwpck_require__(789);
|
1152
1148
|
|
1153
|
-
/** @typedef {import("./Source").
|
1149
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
1154
1150
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
1155
1151
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
1156
1152
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -1285,7 +1281,7 @@ class PrefixSource extends Source {
|
|
1285
1281
|
}
|
1286
1282
|
|
1287
1283
|
/**
|
1288
|
-
* @param {
|
1284
|
+
* @param {HashLike} hash hash
|
1289
1285
|
* @returns {void}
|
1290
1286
|
*/
|
1291
1287
|
updateHash(hash) {
|
@@ -1300,7 +1296,7 @@ module.exports = PrefixSource;
|
|
1300
1296
|
|
1301
1297
|
/***/ }),
|
1302
1298
|
|
1303
|
-
/***/
|
1299
|
+
/***/ 18:
|
1304
1300
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1305
1301
|
|
1306
1302
|
/*
|
@@ -1310,14 +1306,14 @@ module.exports = PrefixSource;
|
|
1310
1306
|
|
1311
1307
|
|
1312
1308
|
|
1313
|
-
const Source = __nccwpck_require__(
|
1314
|
-
const streamChunksOfRawSource = __nccwpck_require__(
|
1309
|
+
const Source = __nccwpck_require__(140);
|
1310
|
+
const streamChunksOfRawSource = __nccwpck_require__(689);
|
1315
1311
|
const {
|
1316
1312
|
internString,
|
1317
1313
|
isDualStringBufferCachingEnabled
|
1318
|
-
} = __nccwpck_require__(
|
1314
|
+
} = __nccwpck_require__(751);
|
1319
1315
|
|
1320
|
-
/** @typedef {import("./Source").
|
1316
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
1321
1317
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
1322
1318
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
1323
1319
|
/** @typedef {import("./Source").SourceValue} SourceValue */
|
@@ -1428,16 +1424,12 @@ class RawSource extends Source {
|
|
1428
1424
|
}
|
1429
1425
|
|
1430
1426
|
/**
|
1431
|
-
* @param {
|
1427
|
+
* @param {HashLike} hash hash
|
1432
1428
|
* @returns {void}
|
1433
1429
|
*/
|
1434
1430
|
updateHash(hash) {
|
1435
1431
|
hash.update("RawSource");
|
1436
|
-
hash.update(
|
1437
|
-
this._valueAsBuffer
|
1438
|
-
? /** @type {Buffer} */ (this._valueAsBuffer)
|
1439
|
-
: /** @type {string} */ (this._valueAsString)
|
1440
|
-
);
|
1432
|
+
hash.update(this.buffer());
|
1441
1433
|
}
|
1442
1434
|
}
|
1443
1435
|
|
@@ -1446,7 +1438,7 @@ module.exports = RawSource;
|
|
1446
1438
|
|
1447
1439
|
/***/ }),
|
1448
1440
|
|
1449
|
-
/***/
|
1441
|
+
/***/ 864:
|
1450
1442
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
1451
1443
|
|
1452
1444
|
/*
|
@@ -1456,12 +1448,12 @@ module.exports = RawSource;
|
|
1456
1448
|
|
1457
1449
|
|
1458
1450
|
|
1459
|
-
const Source = __nccwpck_require__(
|
1460
|
-
const { getMap, getSourceAndMap } = __nccwpck_require__(
|
1461
|
-
const splitIntoLines = __nccwpck_require__(
|
1462
|
-
const streamChunks = __nccwpck_require__(
|
1451
|
+
const Source = __nccwpck_require__(140);
|
1452
|
+
const { getMap, getSourceAndMap } = __nccwpck_require__(521);
|
1453
|
+
const splitIntoLines = __nccwpck_require__(498);
|
1454
|
+
const streamChunks = __nccwpck_require__(789);
|
1463
1455
|
|
1464
|
-
/** @typedef {import("./Source").
|
1456
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
1465
1457
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
1466
1458
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
1467
1459
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -1976,7 +1968,7 @@ class ReplaceSource extends Source {
|
|
1976
1968
|
}
|
1977
1969
|
|
1978
1970
|
/**
|
1979
|
-
* @param {
|
1971
|
+
* @param {HashLike} hash hash
|
1980
1972
|
* @returns {void}
|
1981
1973
|
*/
|
1982
1974
|
updateHash(hash) {
|
@@ -1998,7 +1990,7 @@ module.exports.Replacement = Replacement;
|
|
1998
1990
|
|
1999
1991
|
/***/ }),
|
2000
1992
|
|
2001
|
-
/***/
|
1993
|
+
/***/ 415:
|
2002
1994
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
2003
1995
|
|
2004
1996
|
/*
|
@@ -2008,9 +2000,9 @@ module.exports.Replacement = Replacement;
|
|
2008
2000
|
|
2009
2001
|
|
2010
2002
|
|
2011
|
-
const Source = __nccwpck_require__(
|
2003
|
+
const Source = __nccwpck_require__(140);
|
2012
2004
|
|
2013
|
-
/** @typedef {import("./Source").
|
2005
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
2014
2006
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
2015
2007
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
2016
2008
|
/** @typedef {import("./Source").SourceValue} SourceValue */
|
@@ -2057,7 +2049,7 @@ class SizeOnlySource extends Source {
|
|
2057
2049
|
}
|
2058
2050
|
|
2059
2051
|
/**
|
2060
|
-
* @param {
|
2052
|
+
* @param {HashLike} hash hash
|
2061
2053
|
* @returns {void}
|
2062
2054
|
*/
|
2063
2055
|
updateHash(hash) {
|
@@ -2070,7 +2062,7 @@ module.exports = SizeOnlySource;
|
|
2070
2062
|
|
2071
2063
|
/***/ }),
|
2072
2064
|
|
2073
|
-
/***/
|
2065
|
+
/***/ 140:
|
2074
2066
|
/***/ ((module) => {
|
2075
2067
|
|
2076
2068
|
/*
|
@@ -2095,6 +2087,8 @@ module.exports = SizeOnlySource;
|
|
2095
2087
|
* @property {string[]=} sourcesContent
|
2096
2088
|
* @property {string} mappings
|
2097
2089
|
* @property {string} file
|
2090
|
+
* @property {string=} debugId
|
2091
|
+
* @property {number[]=} ignoreList
|
2098
2092
|
*/
|
2099
2093
|
|
2100
2094
|
/** @typedef {string | Buffer} SourceValue */
|
@@ -2106,8 +2100,8 @@ module.exports = SizeOnlySource;
|
|
2106
2100
|
*/
|
2107
2101
|
|
2108
2102
|
/**
|
2109
|
-
* @typedef {object}
|
2110
|
-
* @property {(data: string | Buffer, inputEncoding?: string) =>
|
2103
|
+
* @typedef {object} HashLike
|
2104
|
+
* @property {(data: string | Buffer, inputEncoding?: string) => HashLike} update
|
2111
2105
|
* @property {(encoding?: string) => string | Buffer} digest
|
2112
2106
|
*/
|
2113
2107
|
|
@@ -2149,7 +2143,7 @@ class Source {
|
|
2149
2143
|
}
|
2150
2144
|
|
2151
2145
|
/**
|
2152
|
-
* @param {
|
2146
|
+
* @param {HashLike} hash hash
|
2153
2147
|
* @returns {void}
|
2154
2148
|
*/
|
2155
2149
|
updateHash(hash) {
|
@@ -2162,7 +2156,7 @@ module.exports = Source;
|
|
2162
2156
|
|
2163
2157
|
/***/ }),
|
2164
2158
|
|
2165
|
-
/***/
|
2159
|
+
/***/ 109:
|
2166
2160
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
2167
2161
|
|
2168
2162
|
/*
|
@@ -2172,15 +2166,15 @@ module.exports = Source;
|
|
2172
2166
|
|
2173
2167
|
|
2174
2168
|
|
2175
|
-
const Source = __nccwpck_require__(
|
2176
|
-
const { getMap, getSourceAndMap } = __nccwpck_require__(
|
2177
|
-
const streamChunksOfCombinedSourceMap = __nccwpck_require__(
|
2178
|
-
const streamChunksOfSourceMap = __nccwpck_require__(
|
2169
|
+
const Source = __nccwpck_require__(140);
|
2170
|
+
const { getMap, getSourceAndMap } = __nccwpck_require__(521);
|
2171
|
+
const streamChunksOfCombinedSourceMap = __nccwpck_require__(810);
|
2172
|
+
const streamChunksOfSourceMap = __nccwpck_require__(991);
|
2179
2173
|
const {
|
2180
2174
|
isDualStringBufferCachingEnabled
|
2181
|
-
} = __nccwpck_require__(
|
2175
|
+
} = __nccwpck_require__(751);
|
2182
2176
|
|
2183
|
-
/** @typedef {import("./Source").
|
2177
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
2184
2178
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
2185
2179
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
2186
2180
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -2508,27 +2502,13 @@ class SourceMapSource extends Source {
|
|
2508
2502
|
}
|
2509
2503
|
|
2510
2504
|
/**
|
2511
|
-
* @param {
|
2505
|
+
* @param {HashLike} hash hash
|
2512
2506
|
* @returns {void}
|
2513
2507
|
*/
|
2514
2508
|
updateHash(hash) {
|
2515
2509
|
hash.update("SourceMapSource");
|
2516
|
-
hash.update(
|
2517
|
-
|
2518
|
-
? this._valueAsBuffer
|
2519
|
-
: typeof this._valueAsString === "string"
|
2520
|
-
? this._valueAsString
|
2521
|
-
: // Fallback when memory optimization enabled
|
2522
|
-
this.buffer()
|
2523
|
-
);
|
2524
|
-
hash.update(
|
2525
|
-
this._sourceMapAsBuffer
|
2526
|
-
? this._sourceMapAsBuffer
|
2527
|
-
: typeof this._sourceMapAsString === "string"
|
2528
|
-
? this._sourceMapAsString
|
2529
|
-
: // Fallback when memory optimization enabled
|
2530
|
-
this._sourceMapBuffer()
|
2531
|
-
);
|
2510
|
+
hash.update(this.buffer());
|
2511
|
+
hash.update(this._sourceMapBuffer());
|
2532
2512
|
|
2533
2513
|
if (this._hasOriginalSource) {
|
2534
2514
|
hash.update(
|
@@ -2553,7 +2533,7 @@ module.exports = SourceMapSource;
|
|
2553
2533
|
|
2554
2534
|
/***/ }),
|
2555
2535
|
|
2556
|
-
/***/
|
2536
|
+
/***/ 108:
|
2557
2537
|
/***/ ((module) => {
|
2558
2538
|
|
2559
2539
|
/*
|
@@ -2793,7 +2773,7 @@ module.exports = createMappingsSerializer;
|
|
2793
2773
|
|
2794
2774
|
/***/ }),
|
2795
2775
|
|
2796
|
-
/***/
|
2776
|
+
/***/ 521:
|
2797
2777
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
2798
2778
|
|
2799
2779
|
/*
|
@@ -2803,7 +2783,7 @@ module.exports = createMappingsSerializer;
|
|
2803
2783
|
|
2804
2784
|
|
2805
2785
|
|
2806
|
-
const createMappingsSerializer = __nccwpck_require__(
|
2786
|
+
const createMappingsSerializer = __nccwpck_require__(108);
|
2807
2787
|
|
2808
2788
|
/** @typedef {import("../Source").RawSourceMap} RawSourceMap */
|
2809
2789
|
/** @typedef {import("../Source").SourceAndMap} SourceAndMap */
|
@@ -2959,7 +2939,7 @@ exports.getMap = (source, options) => {
|
|
2959
2939
|
|
2960
2940
|
/***/ }),
|
2961
2941
|
|
2962
|
-
/***/
|
2942
|
+
/***/ 147:
|
2963
2943
|
/***/ ((module) => {
|
2964
2944
|
|
2965
2945
|
/*
|
@@ -3010,7 +2990,7 @@ module.exports = getGeneratedSourceInfo;
|
|
3010
2990
|
|
3011
2991
|
/***/ }),
|
3012
2992
|
|
3013
|
-
/***/
|
2993
|
+
/***/ 890:
|
3014
2994
|
/***/ ((module) => {
|
3015
2995
|
|
3016
2996
|
/*
|
@@ -3041,7 +3021,7 @@ module.exports = getSource;
|
|
3041
3021
|
|
3042
3022
|
/***/ }),
|
3043
3023
|
|
3044
|
-
/***/
|
3024
|
+
/***/ 376:
|
3045
3025
|
/***/ ((module) => {
|
3046
3026
|
|
3047
3027
|
/*
|
@@ -3166,7 +3146,7 @@ module.exports = readMappings;
|
|
3166
3146
|
|
3167
3147
|
/***/ }),
|
3168
3148
|
|
3169
|
-
/***/
|
3149
|
+
/***/ 498:
|
3170
3150
|
/***/ ((module) => {
|
3171
3151
|
|
3172
3152
|
/*
|
@@ -3206,7 +3186,7 @@ module.exports = splitIntoLines;
|
|
3206
3186
|
|
3207
3187
|
/***/ }),
|
3208
3188
|
|
3209
|
-
/***/
|
3189
|
+
/***/ 225:
|
3210
3190
|
/***/ ((module) => {
|
3211
3191
|
|
3212
3192
|
/*
|
@@ -3266,7 +3246,7 @@ module.exports = splitIntoPotentialTokens;
|
|
3266
3246
|
|
3267
3247
|
/***/ }),
|
3268
3248
|
|
3269
|
-
/***/
|
3249
|
+
/***/ 756:
|
3270
3250
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
3271
3251
|
|
3272
3252
|
/*
|
@@ -3276,8 +3256,8 @@ module.exports = splitIntoPotentialTokens;
|
|
3276
3256
|
|
3277
3257
|
|
3278
3258
|
|
3279
|
-
const createMappingsSerializer = __nccwpck_require__(
|
3280
|
-
const streamChunks = __nccwpck_require__(
|
3259
|
+
const createMappingsSerializer = __nccwpck_require__(108);
|
3260
|
+
const streamChunks = __nccwpck_require__(789);
|
3281
3261
|
|
3282
3262
|
/** @typedef {import("../Source").RawSourceMap} RawSourceMap */
|
3283
3263
|
/** @typedef {import("./streamChunks").GeneratedSourceInfo} GeneratedSourceInfo */
|
@@ -3399,7 +3379,7 @@ module.exports = streamAndGetSourceAndMap;
|
|
3399
3379
|
|
3400
3380
|
/***/ }),
|
3401
3381
|
|
3402
|
-
/***/
|
3382
|
+
/***/ 789:
|
3403
3383
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
3404
3384
|
|
3405
3385
|
/*
|
@@ -3409,8 +3389,8 @@ module.exports = streamAndGetSourceAndMap;
|
|
3409
3389
|
|
3410
3390
|
|
3411
3391
|
|
3412
|
-
const streamChunksOfRawSource = __nccwpck_require__(
|
3413
|
-
const streamChunksOfSourceMap = __nccwpck_require__(
|
3392
|
+
const streamChunksOfRawSource = __nccwpck_require__(689);
|
3393
|
+
const streamChunksOfSourceMap = __nccwpck_require__(991);
|
3414
3394
|
|
3415
3395
|
/** @typedef {import("../Source")} Source */
|
3416
3396
|
/** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
|
@@ -3470,7 +3450,7 @@ module.exports = (source, options, onChunk, onSource, onName) => {
|
|
3470
3450
|
|
3471
3451
|
/***/ }),
|
3472
3452
|
|
3473
|
-
/***/
|
3453
|
+
/***/ 810:
|
3474
3454
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
3475
3455
|
|
3476
3456
|
/*
|
@@ -3480,8 +3460,8 @@ module.exports = (source, options, onChunk, onSource, onName) => {
|
|
3480
3460
|
|
3481
3461
|
|
3482
3462
|
|
3483
|
-
const splitIntoLines = __nccwpck_require__(
|
3484
|
-
const streamChunksOfSourceMap = __nccwpck_require__(
|
3463
|
+
const splitIntoLines = __nccwpck_require__(498);
|
3464
|
+
const streamChunksOfSourceMap = __nccwpck_require__(991);
|
3485
3465
|
|
3486
3466
|
/** @typedef {import("../Source").RawSourceMap} RawSourceMap */
|
3487
3467
|
/** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
|
@@ -3844,7 +3824,7 @@ module.exports = streamChunksOfCombinedSourceMap;
|
|
3844
3824
|
|
3845
3825
|
/***/ }),
|
3846
3826
|
|
3847
|
-
/***/
|
3827
|
+
/***/ 689:
|
3848
3828
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
3849
3829
|
|
3850
3830
|
/*
|
@@ -3854,8 +3834,8 @@ module.exports = streamChunksOfCombinedSourceMap;
|
|
3854
3834
|
|
3855
3835
|
|
3856
3836
|
|
3857
|
-
const getGeneratedSourceInfo = __nccwpck_require__(
|
3858
|
-
const splitIntoLines = __nccwpck_require__(
|
3837
|
+
const getGeneratedSourceInfo = __nccwpck_require__(147);
|
3838
|
+
const splitIntoLines = __nccwpck_require__(498);
|
3859
3839
|
|
3860
3840
|
/** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
|
3861
3841
|
/** @typedef {import("./streamChunks").OnChunk} OnChunk */
|
@@ -3906,7 +3886,7 @@ module.exports = (source, onChunk, onSource, onName, finalSource) => {
|
|
3906
3886
|
|
3907
3887
|
/***/ }),
|
3908
3888
|
|
3909
|
-
/***/
|
3889
|
+
/***/ 991:
|
3910
3890
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
3911
3891
|
|
3912
3892
|
/*
|
@@ -3916,10 +3896,10 @@ module.exports = (source, onChunk, onSource, onName, finalSource) => {
|
|
3916
3896
|
|
3917
3897
|
|
3918
3898
|
|
3919
|
-
const getGeneratedSourceInfo = __nccwpck_require__(
|
3920
|
-
const getSource = __nccwpck_require__(
|
3921
|
-
const readMappings = __nccwpck_require__(
|
3922
|
-
const splitIntoLines = __nccwpck_require__(
|
3899
|
+
const getGeneratedSourceInfo = __nccwpck_require__(147);
|
3900
|
+
const getSource = __nccwpck_require__(890);
|
3901
|
+
const readMappings = __nccwpck_require__(376);
|
3902
|
+
const splitIntoLines = __nccwpck_require__(498);
|
3923
3903
|
|
3924
3904
|
/** @typedef {import("../Source").RawSourceMap} RawSourceMap */
|
3925
3905
|
/** @typedef {import("./getGeneratedSourceInfo").GeneratedSourceInfo} GeneratedSourceInfo */
|
@@ -4413,7 +4393,7 @@ module.exports = (
|
|
4413
4393
|
|
4414
4394
|
/***/ }),
|
4415
4395
|
|
4416
|
-
/***/
|
4396
|
+
/***/ 751:
|
4417
4397
|
/***/ ((module) => {
|
4418
4398
|
|
4419
4399
|
/*
|
@@ -4542,7 +4522,7 @@ module.exports = {
|
|
4542
4522
|
|
4543
4523
|
/***/ }),
|
4544
4524
|
|
4545
|
-
/***/
|
4525
|
+
/***/ 33:
|
4546
4526
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
4547
4527
|
|
4548
4528
|
/*
|
@@ -4556,7 +4536,7 @@ module.exports = {
|
|
4556
4536
|
/** @typedef {import("./CompatSource").SourceLike} SourceLike */
|
4557
4537
|
/** @typedef {import("./ConcatSource").Child} ConcatSourceChild */
|
4558
4538
|
/** @typedef {import("./ReplaceSource").Replacement} Replacement */
|
4559
|
-
/** @typedef {import("./Source").
|
4539
|
+
/** @typedef {import("./Source").HashLike} HashLike */
|
4560
4540
|
/** @typedef {import("./Source").MapOptions} MapOptions */
|
4561
4541
|
/** @typedef {import("./Source").RawSourceMap} RawSourceMap */
|
4562
4542
|
/** @typedef {import("./Source").SourceAndMap} SourceAndMap */
|
@@ -4631,38 +4611,38 @@ module.exports = mergeExports(
|
|
4631
4611
|
{},
|
4632
4612
|
{
|
4633
4613
|
get Source() {
|
4634
|
-
return __nccwpck_require__(
|
4614
|
+
return __nccwpck_require__(140);
|
4635
4615
|
},
|
4636
4616
|
get RawSource() {
|
4637
|
-
return __nccwpck_require__(
|
4617
|
+
return __nccwpck_require__(18);
|
4638
4618
|
},
|
4639
4619
|
get OriginalSource() {
|
4640
|
-
return __nccwpck_require__(
|
4620
|
+
return __nccwpck_require__(971);
|
4641
4621
|
},
|
4642
4622
|
get SourceMapSource() {
|
4643
|
-
return __nccwpck_require__(
|
4623
|
+
return __nccwpck_require__(109);
|
4644
4624
|
},
|
4645
4625
|
get CachedSource() {
|
4646
|
-
return __nccwpck_require__(
|
4626
|
+
return __nccwpck_require__(762);
|
4647
4627
|
},
|
4648
4628
|
get ConcatSource() {
|
4649
|
-
return __nccwpck_require__(
|
4629
|
+
return __nccwpck_require__(196);
|
4650
4630
|
},
|
4651
4631
|
get ReplaceSource() {
|
4652
|
-
return __nccwpck_require__(
|
4632
|
+
return __nccwpck_require__(864);
|
4653
4633
|
},
|
4654
4634
|
get PrefixSource() {
|
4655
|
-
return __nccwpck_require__(
|
4635
|
+
return __nccwpck_require__(664);
|
4656
4636
|
},
|
4657
4637
|
get SizeOnlySource() {
|
4658
|
-
return __nccwpck_require__(
|
4638
|
+
return __nccwpck_require__(415);
|
4659
4639
|
},
|
4660
4640
|
get CompatSource() {
|
4661
|
-
return __nccwpck_require__(
|
4641
|
+
return __nccwpck_require__(610);
|
4662
4642
|
},
|
4663
4643
|
util: {
|
4664
4644
|
get stringBufferUtils() {
|
4665
|
-
return __nccwpck_require__(
|
4645
|
+
return __nccwpck_require__(751);
|
4666
4646
|
}
|
4667
4647
|
}
|
4668
4648
|
}
|
@@ -4713,7 +4693,7 @@ module.exports = mergeExports(
|
|
4713
4693
|
/******/ // startup
|
4714
4694
|
/******/ // Load entry module and return exports
|
4715
4695
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
4716
|
-
/******/ var __webpack_exports__ = __nccwpck_require__(
|
4696
|
+
/******/ var __webpack_exports__ = __nccwpck_require__(33);
|
4717
4697
|
/******/ module.exports = __webpack_exports__;
|
4718
4698
|
/******/
|
4719
4699
|
/******/ })()
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"webpack-sources","author":"Tobias Koppers @sokra","version":"3.3.
|
1
|
+
{"name":"webpack-sources","author":"Tobias Koppers @sokra","version":"3.3.2","license":"MIT","types":"types.d.ts","type":"commonjs"}
|
@@ -84,8 +84,8 @@ declare interface GeneratedSourceInfo {
|
|
84
84
|
generatedColumn?: number;
|
85
85
|
source?: string;
|
86
86
|
}
|
87
|
-
declare interface
|
88
|
-
update: (data: string | Buffer, inputEncoding?: string) =>
|
87
|
+
declare interface HashLike {
|
88
|
+
update: (data: string | Buffer, inputEncoding?: string) => HashLike;
|
89
89
|
digest: (encoding?: string) => string | Buffer;
|
90
90
|
}
|
91
91
|
declare interface MapOptions {
|
@@ -167,6 +167,8 @@ declare interface RawSourceMap {
|
|
167
167
|
sourcesContent?: string[];
|
168
168
|
mappings: string;
|
169
169
|
file: string;
|
170
|
+
debugId?: string;
|
171
|
+
ignoreList?: number[];
|
170
172
|
}
|
171
173
|
declare class ReplaceSource extends Source {
|
172
174
|
constructor(source: Source, name?: string);
|
@@ -213,7 +215,7 @@ declare class Source {
|
|
213
215
|
size(): number;
|
214
216
|
map(options?: MapOptions): null | RawSourceMap;
|
215
217
|
sourceAndMap(options?: MapOptions): SourceAndMap;
|
216
|
-
updateHash(hash:
|
218
|
+
updateHash(hash: HashLike): void;
|
217
219
|
}
|
218
220
|
declare interface SourceAndMap {
|
219
221
|
source: SourceValue;
|
@@ -225,7 +227,7 @@ declare interface SourceLike {
|
|
225
227
|
size?: () => number;
|
226
228
|
map?: (options?: MapOptions) => null | RawSourceMap;
|
227
229
|
sourceAndMap?: (options?: MapOptions) => SourceAndMap;
|
228
|
-
updateHash?: (hash:
|
230
|
+
updateHash?: (hash: HashLike) => void;
|
229
231
|
}
|
230
232
|
declare class SourceMapSource extends Source {
|
231
233
|
constructor(
|
@@ -269,7 +271,6 @@ declare interface StreamChunksOptions {
|
|
269
271
|
finalSource?: boolean;
|
270
272
|
columns?: boolean;
|
271
273
|
}
|
272
|
-
|
273
274
|
export namespace util {
|
274
275
|
export namespace stringBufferUtils {
|
275
276
|
export let disableDualStringBufferCaching: () => void;
|
@@ -310,7 +311,7 @@ declare interface StreamChunksOptions {
|
|
310
311
|
SourceLike,
|
311
312
|
ConcatSourceChild,
|
312
313
|
Replacement,
|
313
|
-
|
314
|
+
HashLike,
|
314
315
|
MapOptions,
|
315
316
|
RawSourceMap,
|
316
317
|
SourceAndMap,
|
@@ -318,3 +319,4 @@ declare interface StreamChunksOptions {
|
|
318
319
|
GeneratedSourceInfo,
|
319
320
|
StreamChunksOptions
|
320
321
|
};
|
322
|
+
|
package/dist/Resolver.d.ts
CHANGED
@@ -9,10 +9,11 @@ type ResolveOptionsWithDependencyType = Resolve & {
|
|
9
9
|
export type ResourceData = binding.JsResourceData;
|
10
10
|
export type ResolveRequest = ResourceData;
|
11
11
|
export declare class Resolver {
|
12
|
+
#private;
|
12
13
|
binding: binding.JsResolver;
|
13
14
|
constructor(binding: binding.JsResolver);
|
14
15
|
resolveSync(context: object, path: string, request: string): string | false;
|
15
16
|
resolve(context: object, path: string, request: string, resolveContext: ResolveContext, callback: ResolveCallback): void;
|
16
|
-
withOptions(
|
17
|
+
withOptions(options: ResolveOptionsWithDependencyType): Resolver;
|
17
18
|
}
|
18
19
|
export {};
|
package/dist/index.js
CHANGED
@@ -6519,7 +6519,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
6519
6519
|
}, applyExperimentsDefaults = (experiments, { production, development })=>{
|
6520
6520
|
F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "layers", !1), D(experiments, "topLevelAwait", !0), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !1), D(experiments.incremental, "providedExports", !1), D(experiments.incremental, "dependenciesDiagnostics", !1), D(experiments.incremental, "sideEffects", !1), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !1), D(experiments.incremental, "chunkIds", !1), D(experiments.incremental, "modulesHashes", !1), D(experiments.incremental, "modulesCodegen", !1), D(experiments.incremental, "modulesRuntimeRequirements", !1), D(experiments.incremental, "chunksRuntimeRequirements", !1), D(experiments.incremental, "chunksHashes", !1), D(experiments.incremental, "chunksRender", !1), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !0), D(experiments, "parallelLoader", !1);
|
6521
6521
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
6522
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.3.
|
6522
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.3.15"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
6523
6523
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyJavascriptParserOptionsDefaults = (parserOptions)=>{
|
6524
6524
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
6525
6525
|
"..."
|
@@ -7217,6 +7217,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
7217
7217
|
};
|
7218
7218
|
class Resolver {
|
7219
7219
|
binding;
|
7220
|
+
#childCache = new WeakMap();
|
7220
7221
|
constructor(binding){
|
7221
7222
|
this.binding = binding;
|
7222
7223
|
}
|
@@ -7227,13 +7228,15 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
7227
7228
|
resolve(context, path, request, resolveContext, callback) {
|
7228
7229
|
this.binding.resolve(path, request, (error, data)=>callback(error, data?.resource, data));
|
7229
7230
|
}
|
7230
|
-
withOptions(
|
7231
|
-
let
|
7232
|
-
return
|
7231
|
+
withOptions(options) {
|
7232
|
+
let cacheEntry = this.#childCache.get(options);
|
7233
|
+
if (void 0 !== cacheEntry) return cacheEntry;
|
7234
|
+
let { dependencyCategory, resolveToContext, ...resolve } = options, rawResolve = getRawResolve(resolve), resolver = new Resolver(this.binding.withOptions({
|
7233
7235
|
dependencyCategory,
|
7234
7236
|
resolveToContext,
|
7235
7237
|
...rawResolve
|
7236
7238
|
}));
|
7239
|
+
return this.#childCache.set(options, resolver), resolver;
|
7237
7240
|
}
|
7238
7241
|
}
|
7239
7242
|
class ResolverFactory {
|
@@ -7421,7 +7424,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
7421
7424
|
},
|
7422
7425
|
arm: "gnueabihf"
|
7423
7426
|
}
|
7424
|
-
}, BINDING_VERSION = __webpack_require__("@rspack/binding/package.json").version, CORE_VERSION = "1.3.
|
7427
|
+
}, BINDING_VERSION = __webpack_require__("@rspack/binding/package.json").version, CORE_VERSION = "1.3.15", getAddonPlatformArchAbi = ()=>{
|
7425
7428
|
let { platform, arch } = process, binding = "";
|
7426
7429
|
binding += platform;
|
7427
7430
|
let abi = NodePlatformArchToAbi[platform][arch];
|
@@ -8761,7 +8764,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
8761
8764
|
obj.children = this.stats.map((stat, idx)=>{
|
8762
8765
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
8763
8766
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
8764
|
-
}), childOptions.version && (obj.rspackVersion = "1.3.
|
8767
|
+
}), childOptions.version && (obj.rspackVersion = "1.3.15", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
8765
8768
|
let mapError = (j, obj)=>({
|
8766
8769
|
...obj,
|
8767
8770
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
@@ -9651,7 +9654,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
9651
9654
|
object.hash = context.getStatsCompilation(compilation).hash;
|
9652
9655
|
},
|
9653
9656
|
version: (object)=>{
|
9654
|
-
object.version = "5.75.0", object.rspackVersion = "1.3.
|
9657
|
+
object.version = "5.75.0", object.rspackVersion = "1.3.15";
|
9655
9658
|
},
|
9656
9659
|
env: (object, _compilation, _context, { _env })=>{
|
9657
9660
|
object.env = _env;
|
@@ -13315,7 +13318,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
13315
13318
|
let _options = JSON.stringify(options || {});
|
13316
13319
|
return binding_default().transform(source, _options);
|
13317
13320
|
}
|
13318
|
-
let exports_rspackVersion = "1.3.
|
13321
|
+
let exports_rspackVersion = "1.3.15", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
13319
13322
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
13320
13323
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
13321
13324
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspack/core",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.15",
|
4
4
|
"webpackVersion": "5.75.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
@@ -50,14 +50,14 @@
|
|
50
50
|
"tsx": "^4.19.4",
|
51
51
|
"typescript": "^5.8.3",
|
52
52
|
"watchpack": "^2.4.4",
|
53
|
-
"webpack-sources": "3.3.
|
53
|
+
"webpack-sources": "3.3.2",
|
54
54
|
"zod": "^3.25.50",
|
55
55
|
"zod-validation-error": "3.4.1"
|
56
56
|
},
|
57
57
|
"dependencies": {
|
58
58
|
"@module-federation/runtime-tools": "0.14.3",
|
59
59
|
"@rspack/lite-tapable": "1.0.1",
|
60
|
-
"@rspack/binding": "1.3.
|
60
|
+
"@rspack/binding": "1.3.15"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
63
|
"@swc/helpers": ">=0.5.1"
|