@rsbuild/core 1.2.11 → 1.2.13
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/compiled/chokidar/index.d.ts +61 -23
- package/compiled/chokidar/index.js +71 -56
- package/compiled/css-loader/index.js +309 -195
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/index.d.ts +1 -1
- package/compiled/launch-editor-middleware/index.js +9 -6
- package/compiled/mrmime/index.js +4 -0
- package/compiled/mrmime/package.json +1 -1
- package/compiled/postcss/index.js +194 -194
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-load-config/index.js +11 -11
- package/compiled/postcss-loader/index.js +9 -9
- package/compiled/rsbuild-dev-middleware/index.js +56 -46
- package/compiled/rsbuild-dev-middleware/package.json +1 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/sirv/index.js +8 -4
- package/compiled/sirv/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/compiled/tinyglobby/index.d.ts +1 -0
- package/compiled/tinyglobby/index.js +266 -142
- package/compiled/tinyglobby/package.json +1 -1
- package/compiled/webpack-bundle-analyzer/index.js +6 -2
- package/compiled/ws/index.js +50 -49
- package/compiled/ws/package.json +1 -1
- package/dist/client/hmr.js +2 -2
- package/dist/index.cjs +146 -93
- package/dist/index.js +142 -89
- package/dist-types/helpers/index.d.ts +4 -3
- package/dist-types/index.d.ts +1 -1
- package/dist-types/loadEnv.d.ts +16 -4
- package/dist-types/logger.d.ts +14 -0
- package/dist-types/server/devServer.d.ts +2 -1
- package/dist-types/server/socketServer.d.ts +4 -2
- package/dist-types/types/config.d.ts +79 -43
- package/dist-types/types/rspack.d.ts +1 -1
- package/package.json +12 -12
- package/compiled/jiti/index.d.ts +0 -1
- package/compiled/jiti/index.js +0 -416
- package/compiled/jiti/license +0 -21
- package/compiled/jiti/package.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"tinyglobby","author":"Superchupu","version":"0.2.
|
|
1
|
+
{"name":"tinyglobby","author":"Superchupu","version":"0.2.12","funding":{"url":"https://github.com/sponsors/SuperchupuDev"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -8525,7 +8525,7 @@
|
|
|
8525
8525
|
module.exports.fileSync = (path, options) =>
|
|
8526
8526
|
module.exports.sync(fs.readFileSync(path), options);
|
|
8527
8527
|
},
|
|
8528
|
-
|
|
8528
|
+
2443: (__unused_webpack_module, exports) => {
|
|
8529
8529
|
const mimes = {
|
|
8530
8530
|
"3g2": "video/3gpp2",
|
|
8531
8531
|
"3gp": "video/3gpp",
|
|
@@ -8682,6 +8682,7 @@
|
|
|
8682
8682
|
jsonml: "application/jsonml+json",
|
|
8683
8683
|
jsx: "text/jsx",
|
|
8684
8684
|
jt: "model/jt",
|
|
8685
|
+
jxl: "image/jxl",
|
|
8685
8686
|
jxr: "image/jxr",
|
|
8686
8687
|
jxra: "image/jxra",
|
|
8687
8688
|
jxrs: "image/jxrs",
|
|
@@ -8702,6 +8703,8 @@
|
|
|
8702
8703
|
m1v: "video/mpeg",
|
|
8703
8704
|
m21: "application/mp21",
|
|
8704
8705
|
m2a: "audio/mpeg",
|
|
8706
|
+
m2t: "video/mp2t",
|
|
8707
|
+
m2ts: "video/mp2t",
|
|
8705
8708
|
m2v: "video/mpeg",
|
|
8706
8709
|
m3a: "audio/mpeg",
|
|
8707
8710
|
m4a: "audio/mp4",
|
|
@@ -8762,6 +8765,7 @@
|
|
|
8762
8765
|
msm: "application/octet-stream",
|
|
8763
8766
|
msp: "application/octet-stream",
|
|
8764
8767
|
mtl: "model/mtl",
|
|
8768
|
+
mts: "video/mp2t",
|
|
8765
8769
|
musd: "application/mmt-usd+xml",
|
|
8766
8770
|
mxf: "application/mxf",
|
|
8767
8771
|
mxmf: "audio/mobile-xmf",
|
|
@@ -9102,7 +9106,7 @@
|
|
|
9102
9106
|
const { join, normalize, resolve } = __nccwpck_require__(6928);
|
|
9103
9107
|
const { totalist } = __nccwpck_require__(8794);
|
|
9104
9108
|
const { parse } = __nccwpck_require__(9847);
|
|
9105
|
-
const { lookup } = __nccwpck_require__(
|
|
9109
|
+
const { lookup } = __nccwpck_require__(2443);
|
|
9106
9110
|
const noop = () => {};
|
|
9107
9111
|
function isMatch(uri, arr) {
|
|
9108
9112
|
for (let i = 0; i < arr.length; i++) {
|
package/compiled/ws/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
584: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const WebSocket = __nccwpck_require__(
|
|
6
|
-
WebSocket.createWebSocketStream = __nccwpck_require__(
|
|
7
|
-
WebSocket.Server = __nccwpck_require__(
|
|
8
|
-
WebSocket.Receiver = __nccwpck_require__(
|
|
9
|
-
WebSocket.Sender = __nccwpck_require__(
|
|
5
|
+
const WebSocket = __nccwpck_require__(939);
|
|
6
|
+
WebSocket.createWebSocketStream = __nccwpck_require__(410);
|
|
7
|
+
WebSocket.Server = __nccwpck_require__(599);
|
|
8
|
+
WebSocket.Receiver = __nccwpck_require__(443);
|
|
9
|
+
WebSocket.Sender = __nccwpck_require__(799);
|
|
10
10
|
WebSocket.WebSocket = WebSocket;
|
|
11
11
|
WebSocket.WebSocketServer = WebSocket.Server;
|
|
12
12
|
module.exports = WebSocket;
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
845: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
15
15
|
"use strict";
|
|
16
|
-
const { EMPTY_BUFFER } = __nccwpck_require__(
|
|
16
|
+
const { EMPTY_BUFFER } = __nccwpck_require__(617);
|
|
17
17
|
const FastBuffer = Buffer[Symbol.species];
|
|
18
18
|
function concat(list, totalLength) {
|
|
19
19
|
if (list.length === 0) return EMPTY_BUFFER;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
} catch (e) {}
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
|
|
90
|
+
617: (module) => {
|
|
91
91
|
"use strict";
|
|
92
92
|
const BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
93
93
|
const hasBlob = typeof Blob !== "undefined";
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
NOOP: () => {},
|
|
105
105
|
};
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
504: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
108
108
|
"use strict";
|
|
109
|
-
const { kForOnEventAttribute, kListener } = __nccwpck_require__(
|
|
109
|
+
const { kForOnEventAttribute, kListener } = __nccwpck_require__(617);
|
|
110
110
|
const kCode = Symbol("kCode");
|
|
111
111
|
const kData = Symbol("kData");
|
|
112
112
|
const kError = Symbol("kError");
|
|
@@ -268,9 +268,9 @@
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
881: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
272
272
|
"use strict";
|
|
273
|
-
const { tokenChars } = __nccwpck_require__(
|
|
273
|
+
const { tokenChars } = __nccwpck_require__(521);
|
|
274
274
|
function push(dest, name, elem) {
|
|
275
275
|
if (dest[name] === undefined) dest[name] = [elem];
|
|
276
276
|
else dest[name].push(elem);
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
}
|
|
427
427
|
module.exports = { format, parse };
|
|
428
428
|
},
|
|
429
|
-
|
|
429
|
+
36: (module) => {
|
|
430
430
|
"use strict";
|
|
431
431
|
const kDone = Symbol("kDone");
|
|
432
432
|
const kRun = Symbol("kRun");
|
|
@@ -455,12 +455,12 @@
|
|
|
455
455
|
}
|
|
456
456
|
module.exports = Limiter;
|
|
457
457
|
},
|
|
458
|
-
|
|
458
|
+
58: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
459
459
|
"use strict";
|
|
460
460
|
const zlib = __nccwpck_require__(106);
|
|
461
|
-
const bufferUtil = __nccwpck_require__(
|
|
462
|
-
const Limiter = __nccwpck_require__(
|
|
463
|
-
const { kStatusCode } = __nccwpck_require__(
|
|
461
|
+
const bufferUtil = __nccwpck_require__(845);
|
|
462
|
+
const Limiter = __nccwpck_require__(36);
|
|
463
|
+
const { kStatusCode } = __nccwpck_require__(617);
|
|
464
464
|
const FastBuffer = Buffer[Symbol.species];
|
|
465
465
|
const TRAILER = Buffer.from([0, 0, 255, 255]);
|
|
466
466
|
const kPerMessageDeflate = Symbol("permessage-deflate");
|
|
@@ -780,14 +780,14 @@
|
|
|
780
780
|
this[kCallback](err);
|
|
781
781
|
}
|
|
782
782
|
},
|
|
783
|
-
|
|
783
|
+
443: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
784
784
|
"use strict";
|
|
785
785
|
const { Writable } = __nccwpck_require__(203);
|
|
786
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
786
|
+
const PerMessageDeflate = __nccwpck_require__(58);
|
|
787
787
|
const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } =
|
|
788
|
-
__nccwpck_require__(
|
|
789
|
-
const { concat, toArrayBuffer, unmask } = __nccwpck_require__(
|
|
790
|
-
const { isValidStatusCode, isValidUTF8 } = __nccwpck_require__(
|
|
788
|
+
__nccwpck_require__(617);
|
|
789
|
+
const { concat, toArrayBuffer, unmask } = __nccwpck_require__(845);
|
|
790
|
+
const { isValidStatusCode, isValidUTF8 } = __nccwpck_require__(521);
|
|
791
791
|
const FastBuffer = Buffer[Symbol.species];
|
|
792
792
|
const GET_INFO = 0;
|
|
793
793
|
const GET_PAYLOAD_LENGTH_16 = 1;
|
|
@@ -1284,14 +1284,14 @@
|
|
|
1284
1284
|
}
|
|
1285
1285
|
module.exports = Receiver;
|
|
1286
1286
|
},
|
|
1287
|
-
|
|
1287
|
+
799: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1288
1288
|
"use strict";
|
|
1289
1289
|
const { Duplex } = __nccwpck_require__(203);
|
|
1290
1290
|
const { randomFillSync } = __nccwpck_require__(982);
|
|
1291
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
1292
|
-
const { EMPTY_BUFFER, kWebSocket, NOOP } = __nccwpck_require__(
|
|
1293
|
-
const { isBlob, isValidStatusCode } = __nccwpck_require__(
|
|
1294
|
-
const { mask: applyMask, toBuffer } = __nccwpck_require__(
|
|
1291
|
+
const PerMessageDeflate = __nccwpck_require__(58);
|
|
1292
|
+
const { EMPTY_BUFFER, kWebSocket, NOOP } = __nccwpck_require__(617);
|
|
1293
|
+
const { isBlob, isValidStatusCode } = __nccwpck_require__(521);
|
|
1294
|
+
const { mask: applyMask, toBuffer } = __nccwpck_require__(845);
|
|
1295
1295
|
const kByteLength = Symbol("kByteLength");
|
|
1296
1296
|
const maskBuffer = Buffer.alloc(4);
|
|
1297
1297
|
const RANDOM_POOL_SIZE = 8 * 1024;
|
|
@@ -1660,8 +1660,9 @@
|
|
|
1660
1660
|
sender.onerror(err);
|
|
1661
1661
|
}
|
|
1662
1662
|
},
|
|
1663
|
-
|
|
1663
|
+
410: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1664
1664
|
"use strict";
|
|
1665
|
+
const WebSocket = __nccwpck_require__(939);
|
|
1665
1666
|
const { Duplex } = __nccwpck_require__(203);
|
|
1666
1667
|
function emitClose(stream) {
|
|
1667
1668
|
stream.emit("close");
|
|
@@ -1756,9 +1757,9 @@
|
|
|
1756
1757
|
}
|
|
1757
1758
|
module.exports = createWebSocketStream;
|
|
1758
1759
|
},
|
|
1759
|
-
|
|
1760
|
+
474: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1760
1761
|
"use strict";
|
|
1761
|
-
const { tokenChars } = __nccwpck_require__(
|
|
1762
|
+
const { tokenChars } = __nccwpck_require__(521);
|
|
1762
1763
|
function parse(header) {
|
|
1763
1764
|
const protocols = new Set();
|
|
1764
1765
|
let start = -1;
|
|
@@ -1799,10 +1800,10 @@
|
|
|
1799
1800
|
}
|
|
1800
1801
|
module.exports = { parse };
|
|
1801
1802
|
},
|
|
1802
|
-
|
|
1803
|
+
521: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1803
1804
|
"use strict";
|
|
1804
1805
|
const { isUtf8 } = __nccwpck_require__(181);
|
|
1805
|
-
const { hasBlob } = __nccwpck_require__(
|
|
1806
|
+
const { hasBlob } = __nccwpck_require__(617);
|
|
1806
1807
|
const tokenChars = [
|
|
1807
1808
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
1808
1809
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0,
|
|
@@ -1896,17 +1897,17 @@
|
|
|
1896
1897
|
} catch (e) {}
|
|
1897
1898
|
}
|
|
1898
1899
|
},
|
|
1899
|
-
|
|
1900
|
+
599: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
1900
1901
|
"use strict";
|
|
1901
1902
|
const EventEmitter = __nccwpck_require__(434);
|
|
1902
1903
|
const http = __nccwpck_require__(611);
|
|
1903
1904
|
const { Duplex } = __nccwpck_require__(203);
|
|
1904
1905
|
const { createHash } = __nccwpck_require__(982);
|
|
1905
|
-
const extension = __nccwpck_require__(
|
|
1906
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
1907
|
-
const subprotocol = __nccwpck_require__(
|
|
1908
|
-
const WebSocket = __nccwpck_require__(
|
|
1909
|
-
const { GUID, kWebSocket } = __nccwpck_require__(
|
|
1906
|
+
const extension = __nccwpck_require__(881);
|
|
1907
|
+
const PerMessageDeflate = __nccwpck_require__(58);
|
|
1908
|
+
const subprotocol = __nccwpck_require__(474);
|
|
1909
|
+
const WebSocket = __nccwpck_require__(939);
|
|
1910
|
+
const { GUID, kWebSocket } = __nccwpck_require__(617);
|
|
1910
1911
|
const keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
1911
1912
|
const RUNNING = 0;
|
|
1912
1913
|
const CLOSING = 1;
|
|
@@ -2262,7 +2263,7 @@
|
|
|
2262
2263
|
}
|
|
2263
2264
|
}
|
|
2264
2265
|
},
|
|
2265
|
-
|
|
2266
|
+
939: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2266
2267
|
"use strict";
|
|
2267
2268
|
const EventEmitter = __nccwpck_require__(434);
|
|
2268
2269
|
const https = __nccwpck_require__(692);
|
|
@@ -2272,10 +2273,10 @@
|
|
|
2272
2273
|
const { randomBytes, createHash } = __nccwpck_require__(982);
|
|
2273
2274
|
const { Duplex, Readable } = __nccwpck_require__(203);
|
|
2274
2275
|
const { URL } = __nccwpck_require__(16);
|
|
2275
|
-
const PerMessageDeflate = __nccwpck_require__(
|
|
2276
|
-
const Receiver = __nccwpck_require__(
|
|
2277
|
-
const Sender = __nccwpck_require__(
|
|
2278
|
-
const { isBlob } = __nccwpck_require__(
|
|
2276
|
+
const PerMessageDeflate = __nccwpck_require__(58);
|
|
2277
|
+
const Receiver = __nccwpck_require__(443);
|
|
2278
|
+
const Sender = __nccwpck_require__(799);
|
|
2279
|
+
const { isBlob } = __nccwpck_require__(521);
|
|
2279
2280
|
const {
|
|
2280
2281
|
BINARY_TYPES,
|
|
2281
2282
|
EMPTY_BUFFER,
|
|
@@ -2285,12 +2286,12 @@
|
|
|
2285
2286
|
kStatusCode,
|
|
2286
2287
|
kWebSocket,
|
|
2287
2288
|
NOOP,
|
|
2288
|
-
} = __nccwpck_require__(
|
|
2289
|
+
} = __nccwpck_require__(617);
|
|
2289
2290
|
const {
|
|
2290
2291
|
EventTarget: { addEventListener, removeEventListener },
|
|
2291
|
-
} = __nccwpck_require__(
|
|
2292
|
-
const { format, parse } = __nccwpck_require__(
|
|
2293
|
-
const { toBuffer } = __nccwpck_require__(
|
|
2292
|
+
} = __nccwpck_require__(504);
|
|
2293
|
+
const { format, parse } = __nccwpck_require__(881);
|
|
2294
|
+
const { toBuffer } = __nccwpck_require__(845);
|
|
2294
2295
|
const closeTimeout = 30 * 1e3;
|
|
2295
2296
|
const kAborted = Symbol("kAborted");
|
|
2296
2297
|
const protocolVersions = [8, 13];
|
|
@@ -3148,6 +3149,6 @@
|
|
|
3148
3149
|
}
|
|
3149
3150
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
3150
3151
|
__nccwpck_require__.ab = __dirname + "/";
|
|
3151
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
3152
|
+
var __webpack_exports__ = __nccwpck_require__(584);
|
|
3152
3153
|
module.exports = __webpack_exports__;
|
|
3153
3154
|
})();
|
package/compiled/ws/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"ws","author":"Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)","version":"8.18.
|
|
1
|
+
{"name":"ws","author":"Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)","version":"8.18.1","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
package/dist/client/hmr.js
CHANGED
|
@@ -111,7 +111,7 @@ function onMessage(e) {
|
|
|
111
111
|
}
|
|
112
112
|
function onClose() {
|
|
113
113
|
if (reconnectCount >= hmr_rslib_entry_config.reconnect) {
|
|
114
|
-
if (hmr_rslib_entry_config.reconnect > 0) console.info('[HMR]
|
|
114
|
+
if (hmr_rslib_entry_config.reconnect > 0) console.info('[HMR] connection failure after maximum reconnect limit exceeded.');
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
console.info('[HMR] disconnected. Attempting to reconnect.');
|
|
@@ -129,7 +129,7 @@ function onError() {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function connect() {
|
|
132
|
-
let fallback = arguments.length > 0 && void 0 !== arguments[0]
|
|
132
|
+
let fallback = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
133
133
|
const socketUrl = formatURL(fallback ? resolvedConfig : hmr_rslib_entry_config);
|
|
134
134
|
connection = new WebSocket(socketUrl);
|
|
135
135
|
connection.addEventListener('open', onOpen);
|