@rsbuild/core 2.0.0-beta.10 → 2.0.0-beta.11
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/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +28 -73
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +1 -1
- package/compiled/rslog/package.json +1 -1
- package/dist/{958.js → 552.js} +174 -42
- package/dist/chokidar.js +34 -33
- package/dist/connect-next.js +4 -8
- package/dist/cors.js +1 -1
- package/dist/{src.js → debug.js} +3 -10
- package/dist/http-proxy-middleware.js +19 -57
- package/dist/index.js +1 -1
- package/dist/launch-editor-middleware.js +8 -27
- package/dist/manifest-plugin.js +9 -16
- package/dist/memfs.js +8 -31
- package/dist/mrmime.js +1 -2
- package/dist/range-parser.js +1 -1
- package/dist/sirv.js +10 -10
- package/dist/tinyglobby.js +1 -1
- package/dist/ws.js +8 -44
- package/dist-types/types/config.d.ts +1 -1
- package/package.json +9 -10
- package/types.d.ts +1 -1
- /package/dist/{rslib-runtime.js → 1~rslib-runtime.js} +0 -0
- /package/dist/{958.js.LICENSE.txt → 552.js.LICENSE.txt} +0 -0
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as __rspack_external_os from "os";
|
|
4
|
-
import * as __rspack_external_path from "path";
|
|
5
|
-
import * as __rspack_external_url from "url";
|
|
6
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
7
3
|
__webpack_require__.add({
|
|
8
4
|
"../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9
|
-
let path = __webpack_require__("path?
|
|
5
|
+
let path = __webpack_require__("path?37f5"), launch = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js");
|
|
10
6
|
module.exports = (specifiedEditor, srcRoot, onErrorCallback)=>('function' == typeof specifiedEditor && (onErrorCallback = specifiedEditor, specifiedEditor = void 0), 'function' == typeof srcRoot && (onErrorCallback = srcRoot, srcRoot = void 0), srcRoot = srcRoot || process.cwd(), function launchEditorMiddleware(req, res) {
|
|
11
7
|
let url;
|
|
12
8
|
try {
|
|
@@ -117,7 +113,7 @@ __webpack_require__.add({
|
|
|
117
113
|
];
|
|
118
114
|
},
|
|
119
115
|
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
120
|
-
let path = __webpack_require__("path?
|
|
116
|
+
let path = __webpack_require__("path?37f5");
|
|
121
117
|
module.exports = function getArgumentsForPosition(editor, fileName, lineNumber, columnNumber = 1) {
|
|
122
118
|
switch(path.basename(editor).replace(/\.(exe|cmd|bat)$/i, '')){
|
|
123
119
|
case 'atom':
|
|
@@ -214,7 +210,7 @@ __webpack_require__.add({
|
|
|
214
210
|
};
|
|
215
211
|
},
|
|
216
212
|
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
217
|
-
let path = __webpack_require__("path?
|
|
213
|
+
let path = __webpack_require__("path?37f5"), shellQuote = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js"), childProcess = __webpack_require__("child_process"), COMMON_EDITORS_MACOS = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js"), COMMON_EDITORS_LINUX = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js"), COMMON_EDITORS_WIN = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js");
|
|
218
214
|
module.exports = function guessEditor(specifiedEditor) {
|
|
219
215
|
if (specifiedEditor) return shellQuote.parse(specifiedEditor);
|
|
220
216
|
if (process.env.LAUNCH_EDITOR) return [
|
|
@@ -288,7 +284,7 @@ __webpack_require__.add({
|
|
|
288
284
|
};
|
|
289
285
|
},
|
|
290
286
|
"../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
291
|
-
let fs = __webpack_require__("fs?
|
|
287
|
+
let fs = __webpack_require__("fs?cdbd"), os = __webpack_require__("os"), path = __webpack_require__("path?37f5"), colors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"), childProcess = __webpack_require__("child_process"), guessEditor = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js"), getArgumentsForPosition = __webpack_require__("../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js");
|
|
292
288
|
function wrapErrorCallback(cb) {
|
|
293
289
|
return (fileName, errorMessage)=>{
|
|
294
290
|
console.log(), console.log(colors.red('Could not open ' + path.basename(fileName) + ' in the editor.')), errorMessage && ('.' !== errorMessage[errorMessage.length - 1] && (errorMessage += '.'), console.log(colors.red('The editor process exited with an error: ' + errorMessage))), console.log(), cb && cb(fileName, errorMessage);
|
|
@@ -305,7 +301,7 @@ __webpack_require__.add({
|
|
|
305
301
|
}
|
|
306
302
|
let positionRE = /:(\d+)(:(\d+))?$/;
|
|
307
303
|
function parseFile(file) {
|
|
308
|
-
file.startsWith('file://') && (file = __webpack_require__("url?
|
|
304
|
+
file.startsWith('file://') && (file = __webpack_require__("url?5f07").fileURLToPath(file));
|
|
309
305
|
let fileName = file.replace(positionRE, ''), match = file.match(positionRE);
|
|
310
306
|
return {
|
|
311
307
|
fileName,
|
|
@@ -409,7 +405,7 @@ __webpack_require__.add({
|
|
|
409
405
|
module.exports = createColors(), module.exports.createColors = createColors;
|
|
410
406
|
},
|
|
411
407
|
"../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
412
|
-
__webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js"), exports.parse = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js");
|
|
408
|
+
exports.quote = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/quote.js"), exports.parse = __webpack_require__("../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js");
|
|
413
409
|
},
|
|
414
410
|
"../../node_modules/.pnpm/shell-quote@1.8.3/node_modules/shell-quote/parse.js" (module) {
|
|
415
411
|
for(var CONTROL = "(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])", controlRE = RegExp('^' + CONTROL + '$'), META = '|&;()<> \\t', hash = /^#$/, TOKEN = '', i = 0; i < 4; i++)TOKEN += (0x100000000 * Math.random()).toString(16);
|
|
@@ -500,20 +496,5 @@ __webpack_require__.add({
|
|
|
500
496
|
return '' === s ? '\'\'' : s && 'object' == typeof s ? s.op.replace(/(.)/g, '\\$1') : /["\s\\]/.test(s) && !/'/.test(s) ? "'" + s.replace(/(['])/g, '\\$1') + "'" : /["'\s]/.test(s) ? '"' + s.replace(/(["\\$`!])/g, '\\$1') + '"' : String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, '$1\\$2');
|
|
501
497
|
}).join(' ');
|
|
502
498
|
};
|
|
503
|
-
},
|
|
504
|
-
child_process (module) {
|
|
505
|
-
module.exports = __rspack_external_child_process;
|
|
506
|
-
},
|
|
507
|
-
"fs?8256" (module) {
|
|
508
|
-
module.exports = __rspack_external_fs;
|
|
509
|
-
},
|
|
510
|
-
"os?58cf" (module) {
|
|
511
|
-
module.exports = __rspack_external_os;
|
|
512
|
-
},
|
|
513
|
-
"path?940c" (module) {
|
|
514
|
-
module.exports = __rspack_external_path;
|
|
515
|
-
},
|
|
516
|
-
"url?62de" (module) {
|
|
517
|
-
module.exports = __rspack_external_url;
|
|
518
499
|
}
|
|
519
500
|
}), __webpack_require__("../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js");
|
package/dist/manifest-plugin.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
4
3
|
__webpack_require__.add({
|
|
5
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.
|
|
4
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/helpers.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
6
5
|
exports.transformFiles = exports.reduceChunk = exports.reduceAssets = exports.generateManifest = void 0;
|
|
7
|
-
let node_path_1 = __webpack_require__("node:path?
|
|
6
|
+
let node_path_1 = __webpack_require__("node:path?815c");
|
|
8
7
|
exports.generateManifest = (compilation, files, { generate, seed = {} })=>generate ? generate(seed, files, Array.from(compilation.entrypoints.entries()).reduce((e, [name, entrypoint])=>Object.assign(e, {
|
|
9
8
|
[name]: entrypoint.getFiles()
|
|
10
9
|
}), {}), {
|
|
@@ -62,9 +61,9 @@ __webpack_require__.add({
|
|
|
62
61
|
'sort'
|
|
63
62
|
].filter((fname)=>!!options[fname]).reduce((prev, fname)=>prev[fname](options[fname]), files).map(standardizeFilePaths);
|
|
64
63
|
},
|
|
65
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.
|
|
64
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/hooks.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
66
65
|
exports.getCompilerHooks = exports.emitHook = exports.beforeRunHook = void 0;
|
|
67
|
-
let node_fs_1 = __webpack_require__("node:fs?
|
|
66
|
+
let node_fs_1 = __webpack_require__("node:fs?31c0"), node_path_1 = __webpack_require__("node:path?815c"), lite_tapable_1 = __webpack_require__("../../node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs"), helpers_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/helpers.js"), compilerHookMap = new WeakMap(), getCompilerHooks = (compiler)=>{
|
|
68
67
|
let hooks = compilerHookMap.get(compiler);
|
|
69
68
|
return void 0 === hooks && (hooks = {
|
|
70
69
|
afterEmit: new lite_tapable_1.SyncWaterfallHook([
|
|
@@ -113,9 +112,9 @@ __webpack_require__.add({
|
|
|
113
112
|
getCompilerHooks(compiler).afterEmit.call(manifest);
|
|
114
113
|
};
|
|
115
114
|
},
|
|
116
|
-
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.
|
|
115
|
+
"../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
117
116
|
exports.RspackManifestPlugin = void 0;
|
|
118
|
-
let node_path_1 = __webpack_require__("node:path?
|
|
117
|
+
let node_path_1 = __webpack_require__("node:path?815c"), hooks_1 = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/hooks.js"), emitCountMap = new Map(), defaults = {
|
|
119
118
|
assetHookStage: 1 / 0,
|
|
120
119
|
basePath: '',
|
|
121
120
|
fileName: 'manifest.json',
|
|
@@ -157,12 +156,6 @@ __webpack_require__.add({
|
|
|
157
156
|
}
|
|
158
157
|
};
|
|
159
158
|
},
|
|
160
|
-
"node:fs?9b01" (module) {
|
|
161
|
-
module.exports = __rspack_external_node_fs_5ea92f0c;
|
|
162
|
-
},
|
|
163
|
-
"node:path?f6bc" (module) {
|
|
164
|
-
module.exports = __rspack_external_node_path_c5b9b54f;
|
|
165
|
-
},
|
|
166
159
|
"../../node_modules/.pnpm/@rspack+lite-tapable@1.1.0/node_modules/@rspack/lite-tapable/dist/index.cjs" (__unused_rspack_module, exports) {
|
|
167
160
|
var __nested_rspack_require_18_37__ = {};
|
|
168
161
|
__nested_rspack_require_18_37__.d = (exports1, definition)=>{
|
|
@@ -690,5 +683,5 @@ __webpack_require__.add({
|
|
|
690
683
|
});
|
|
691
684
|
}
|
|
692
685
|
});
|
|
693
|
-
var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.
|
|
686
|
+
var RspackManifestPlugin = __webpack_require__("../../node_modules/.pnpm/rspack-manifest-plugin@5.2.1_@rspack+core@2.0.0-beta.9_@module-federation+runtime-tools@2.3.0_@swc+helpers@0.5.20_/node_modules/rspack-manifest-plugin/dist/index.js").RspackManifestPlugin;
|
|
694
687
|
export { RspackManifestPlugin };
|
package/dist/memfs.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
4
|
-
import * as __rspack_external_node_stream_444d1c2b from "node:stream";
|
|
5
|
-
import * as __rspack_external_process from "process";
|
|
6
|
-
import * as __rspack_external_url from "url";
|
|
7
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
8
3
|
__webpack_require__.add({
|
|
9
4
|
"../../node_modules/.pnpm/@jsonjoy.com+base64@17.67.0_tslib@2.8.1/node_modules/@jsonjoy.com/base64/lib/constants.js" (__unused_rspack_module, exports) {
|
|
10
5
|
exports.alphabet = void 0, exports.alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', 'function' == typeof Buffer && Buffer.from;
|
|
@@ -1386,7 +1381,7 @@ __webpack_require__.add({
|
|
|
1386
1381
|
function pathToFilename(path) {
|
|
1387
1382
|
if (path instanceof Uint8Array && (path = (0, buffer_1.bufferFrom)(path)), 'string' != typeof path && !buffer_1.Buffer.isBuffer(path)) {
|
|
1388
1383
|
try {
|
|
1389
|
-
if (!(path instanceof __webpack_require__("url?
|
|
1384
|
+
if (!(path instanceof __webpack_require__("url?5f07").URL)) throw TypeError(fs_node_utils_1.ERRSTR.PATH_STR);
|
|
1390
1385
|
} catch (err) {
|
|
1391
1386
|
throw TypeError(fs_node_utils_1.ERRSTR.PATH_STR);
|
|
1392
1387
|
}
|
|
@@ -1452,7 +1447,7 @@ __webpack_require__.add({
|
|
|
1452
1447
|
},
|
|
1453
1448
|
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/buffer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1454
1449
|
exports.Buffer = void 0;
|
|
1455
|
-
var node_buffer_1 = __webpack_require__("node:buffer?
|
|
1450
|
+
var node_buffer_1 = __webpack_require__("node:buffer?4a79");
|
|
1456
1451
|
Object.defineProperty(exports, "Buffer", {
|
|
1457
1452
|
enumerable: !0,
|
|
1458
1453
|
get: function() {
|
|
@@ -1462,7 +1457,7 @@ __webpack_require__.add({
|
|
|
1462
1457
|
},
|
|
1463
1458
|
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/events.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1464
1459
|
exports.EventEmitter = void 0;
|
|
1465
|
-
var node_events_1 = __webpack_require__("node:events?
|
|
1460
|
+
var node_events_1 = __webpack_require__("node:events?5dda");
|
|
1466
1461
|
Object.defineProperty(exports, "EventEmitter", {
|
|
1467
1462
|
enumerable: !0,
|
|
1468
1463
|
get: function() {
|
|
@@ -1521,7 +1516,7 @@ __webpack_require__.add({
|
|
|
1521
1516
|
},
|
|
1522
1517
|
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/path.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1523
1518
|
exports.basename = exports.isAbsolute = exports.normalize = exports.dirname = exports.relative = exports.join = exports.posix = exports.sep = exports.resolve = void 0;
|
|
1524
|
-
var node_path_1 = __webpack_require__("node:path?
|
|
1519
|
+
var node_path_1 = __webpack_require__("node:path?815c");
|
|
1525
1520
|
Object.defineProperty(exports, "resolve", {
|
|
1526
1521
|
enumerable: !0,
|
|
1527
1522
|
get: function() {
|
|
@@ -1571,7 +1566,7 @@ __webpack_require__.add({
|
|
|
1571
1566
|
},
|
|
1572
1567
|
"../../node_modules/.pnpm/@jsonjoy.com+fs-node-builtins@4.57.1_tslib@2.8.1/node_modules/@jsonjoy.com/fs-node-builtins/lib/stream.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
1573
1568
|
exports.Writable = exports.Readable = void 0;
|
|
1574
|
-
var node_stream_1 = __webpack_require__("node:stream?
|
|
1569
|
+
var node_stream_1 = __webpack_require__("node:stream?be04");
|
|
1575
1570
|
Object.defineProperty(exports, "Readable", {
|
|
1576
1571
|
enumerable: !0,
|
|
1577
1572
|
get: function() {
|
|
@@ -2600,7 +2595,7 @@ __webpack_require__.add({
|
|
|
2600
2595
|
function pathToFilename(path) {
|
|
2601
2596
|
if (path instanceof Uint8Array && (path = (0, buffer_1.bufferFrom)(path)), 'string' != typeof path && !buffer_1.Buffer.isBuffer(path)) {
|
|
2602
2597
|
try {
|
|
2603
|
-
if (!(path instanceof __webpack_require__("url?
|
|
2598
|
+
if (!(path instanceof __webpack_require__("url?5f07").URL)) throw TypeError(fs_node_utils_1.ERRSTR.PATH_STR);
|
|
2604
2599
|
} catch (err) {
|
|
2605
2600
|
throw TypeError(fs_node_utils_1.ERRSTR.PATH_STR);
|
|
2606
2601
|
}
|
|
@@ -5536,24 +5531,6 @@ __webpack_require__.add({
|
|
|
5536
5531
|
return str;
|
|
5537
5532
|
};
|
|
5538
5533
|
},
|
|
5539
|
-
"node:buffer?1e2d" (module) {
|
|
5540
|
-
module.exports = __rspack_external_node_buffer_fb286294;
|
|
5541
|
-
},
|
|
5542
|
-
"node:events?46ed" (module) {
|
|
5543
|
-
module.exports = __rspack_external_node_events_0a6aefe7;
|
|
5544
|
-
},
|
|
5545
|
-
"node:path?e033" (module) {
|
|
5546
|
-
module.exports = __rspack_external_node_path_c5b9b54f;
|
|
5547
|
-
},
|
|
5548
|
-
"node:stream?9b27" (module) {
|
|
5549
|
-
module.exports = __rspack_external_node_stream_444d1c2b;
|
|
5550
|
-
},
|
|
5551
|
-
process (module) {
|
|
5552
|
-
module.exports = __rspack_external_process;
|
|
5553
|
-
},
|
|
5554
|
-
"url?72e4" (module) {
|
|
5555
|
-
module.exports = __rspack_external_url;
|
|
5556
|
-
},
|
|
5557
5534
|
"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5558
5535
|
__webpack_require__.d(__webpack_exports__, {
|
|
5559
5536
|
__exportStar: ()=>__exportStar,
|
package/dist/mrmime.js
CHANGED
package/dist/range-parser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! LICENSE: range-parser.js.LICENSE.txt */
|
|
2
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
3
3
|
__webpack_require__.add({
|
|
4
4
|
"../../node_modules/.pnpm/range-parser@1.2.1/node_modules/range-parser/index.js" (module) {
|
|
5
5
|
function combineRanges(ranges) {
|
package/dist/sirv.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createReadStream, existsSync, statSync } from "node:fs";
|
|
2
1
|
import { join, normalize, resolve, sep } from "node:path";
|
|
3
2
|
import { join as external_path_join, resolve as external_path_resolve } from "path";
|
|
4
|
-
import { readdirSync, statSync
|
|
5
|
-
import { parse } from "node:querystring";
|
|
3
|
+
import { readdirSync, statSync } from "fs";
|
|
6
4
|
import { lookup as mrmime_lookup } from "./mrmime.js";
|
|
5
|
+
import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
|
|
6
|
+
import * as __rspack_external_node_querystring_aeb3c0b4 from "node:querystring";
|
|
7
7
|
function totalist(dir, callback, pre = '') {
|
|
8
8
|
let arr = readdirSync(dir = external_path_resolve('.', dir)), i = 0, abs, stats;
|
|
9
|
-
for(; i < arr.length; i++)(stats =
|
|
9
|
+
for(; i < arr.length; i++)(stats = statSync(abs = external_path_join(dir, arr[i]))).isDirectory() ? totalist(abs, callback, external_path_join(pre, arr[i])) : callback(external_path_join(pre, arr[i]), abs, stats);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function parse(req) {
|
|
12
12
|
let raw = req.url;
|
|
13
13
|
if (null == raw) return;
|
|
14
14
|
let prev = req._parsedUrl;
|
|
@@ -16,7 +16,7 @@ function build_parse(req) {
|
|
|
16
16
|
let pathname = raw, search = '', query, hash;
|
|
17
17
|
if (raw.length > 1) {
|
|
18
18
|
let idx = raw.indexOf('#', 1);
|
|
19
|
-
-1 !== idx && (hash = raw.substring(idx), pathname = raw.substring(0, idx)), -1 !== (idx = pathname.indexOf('?', 1)) && (search = pathname.substring(idx), pathname = pathname.substring(0, idx), search.length > 1 && (query = parse(search.substring(1))));
|
|
19
|
+
-1 !== idx && (hash = raw.substring(idx), pathname = raw.substring(0, idx)), -1 !== (idx = pathname.indexOf('?', 1)) && (search = pathname.substring(idx), pathname = pathname.substring(0, idx), search.length > 1 && (query = __rspack_external_node_querystring_aeb3c0b4.parse(search.substring(1))));
|
|
20
20
|
}
|
|
21
21
|
return req._parsedUrl = {
|
|
22
22
|
pathname,
|
|
@@ -43,8 +43,8 @@ function viaCache(cache, uri, extns) {
|
|
|
43
43
|
}
|
|
44
44
|
function viaLocal(dir, isEtag, uri, extns) {
|
|
45
45
|
let abs, stats, name, headers, i = 0, arr = toAssume(uri, extns);
|
|
46
|
-
for(; i < arr.length; i++)if ((abs = normalize(join(dir, name = arr[i]))).startsWith(dir) && existsSync(abs)) {
|
|
47
|
-
if ((stats = statSync(abs)).isDirectory()) continue;
|
|
46
|
+
for(; i < arr.length; i++)if ((abs = normalize(join(dir, name = arr[i]))).startsWith(dir) && __rspack_external_node_fs_5ea92f0c.existsSync(abs)) {
|
|
47
|
+
if ((stats = __rspack_external_node_fs_5ea92f0c.statSync(abs)).isDirectory()) continue;
|
|
48
48
|
return (headers = toHeaders(name, stats, isEtag))['Cache-Control'] = isEtag ? 'no-cache' : 'no-store', {
|
|
49
49
|
abs,
|
|
50
50
|
stats,
|
|
@@ -66,7 +66,7 @@ function send(req, res, file, stats, headers) {
|
|
|
66
66
|
if (end >= stats.size && (end = stats.size - 1), start >= stats.size) return res.setHeader('Content-Range', `bytes */${stats.size}`), res.statusCode = 416, res.end();
|
|
67
67
|
headers['Content-Range'] = `bytes ${start}-${end}/${stats.size}`, headers['Content-Length'] = end - start + 1, headers['Accept-Ranges'] = 'bytes';
|
|
68
68
|
}
|
|
69
|
-
res.writeHead(code, headers), createReadStream(file, opts).pipe(res);
|
|
69
|
+
res.writeHead(code, headers), __rspack_external_node_fs_5ea92f0c.createReadStream(file, opts).pipe(res);
|
|
70
70
|
}
|
|
71
71
|
let ENCODING = {
|
|
72
72
|
'.br': 'br',
|
|
@@ -111,7 +111,7 @@ function build(dir, opts = {}) {
|
|
|
111
111
|
return function(req, res, next) {
|
|
112
112
|
let extns = [
|
|
113
113
|
''
|
|
114
|
-
], pathname =
|
|
114
|
+
], pathname = parse(req).pathname, val = req.headers['accept-encoding'] || '';
|
|
115
115
|
if (gzips && val.includes('gzip') && extns.unshift(...gzips), brots && /(br|brotli)/i.test(val) && extns.unshift(...brots), extns.push(...extensions), -1 !== pathname.indexOf('%')) try {
|
|
116
116
|
pathname = decodeURI(pathname);
|
|
117
117
|
} catch (err) {}
|
package/dist/tinyglobby.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
1
|
import fs_0, * as __rspack_external_fs from "fs";
|
|
3
2
|
import path_0, { basename, dirname, normalize, posix, relative as external_path_relative, resolve, sep } from "path";
|
|
4
3
|
import { fileURLToPath } from "url";
|
|
5
4
|
import { createRequire } from "module";
|
|
5
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
6
6
|
__webpack_require__.add({
|
|
7
7
|
"../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
8
8
|
let pico = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js"), utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js");
|
package/dist/ws.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import * as __rspack_external_http from "http";
|
|
4
|
-
import * as __rspack_external_https from "https";
|
|
5
|
-
import * as __rspack_external_net from "net";
|
|
6
|
-
import * as __rspack_external_stream from "stream";
|
|
7
|
-
import * as __rspack_external_tls from "tls";
|
|
8
|
-
import * as __rspack_external_url from "url";
|
|
9
|
-
import * as __rspack_external_zlib from "zlib";
|
|
10
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
11
|
-
import "./958.js";
|
|
1
|
+
import { __webpack_require__ } from "./1~rslib-runtime.js";
|
|
2
|
+
import "./552.js";
|
|
12
3
|
__webpack_require__.add({
|
|
13
4
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14
5
|
let { EMPTY_BUFFER } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js"), FastBuffer = Buffer[Symbol.species];
|
|
@@ -257,7 +248,7 @@ __webpack_require__.add({
|
|
|
257
248
|
};
|
|
258
249
|
},
|
|
259
250
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
260
|
-
let zlibLimiter, zlib = __webpack_require__("zlib
|
|
251
|
+
let zlibLimiter, zlib = __webpack_require__("zlib"), bufferUtil = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js"), Limiter = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/limiter.js"), { kStatusCode } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js"), FastBuffer = Buffer[Symbol.species], TRAILER = Buffer.from([
|
|
261
252
|
0x00,
|
|
262
253
|
0x00,
|
|
263
254
|
0xff,
|
|
@@ -378,7 +369,7 @@ __webpack_require__.add({
|
|
|
378
369
|
};
|
|
379
370
|
},
|
|
380
371
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/receiver.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
381
|
-
let { Writable } = __webpack_require__("stream
|
|
372
|
+
let { Writable } = __webpack_require__("stream"), PerMessageDeflate = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js"), { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js"), { concat, toArrayBuffer, unmask } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js"), { isValidStatusCode, isValidUTF8 } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/validation.js"), FastBuffer = Buffer[Symbol.species];
|
|
382
373
|
module.exports = class extends Writable {
|
|
383
374
|
constructor(options = {}){
|
|
384
375
|
super(), this._allowSynchronousEvents = void 0 === options.allowSynchronousEvents || options.allowSynchronousEvents, this._binaryType = options.binaryType || BINARY_TYPES[0], this._extensions = options.extensions || {}, this._isServer = !!options.isServer, this._maxPayload = 0 | options.maxPayload, this._skipUTF8Validation = !!options.skipUTF8Validation, this[kWebSocket] = void 0, this._bufferedBytes = 0, this._buffers = [], this._compressed = !1, this._payloadLength = 0, this._mask = void 0, this._fragmented = 0, this._masked = !1, this._fin = !1, this._opcode = 0, this._totalPayloadLength = 0, this._messageLength = 0, this._fragments = [], this._errored = !1, this._loop = !1, this._state = 0;
|
|
@@ -548,7 +539,7 @@ __webpack_require__.add({
|
|
|
548
539
|
};
|
|
549
540
|
},
|
|
550
541
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/sender.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
551
|
-
let randomPool, { Duplex } = __webpack_require__("stream
|
|
542
|
+
let randomPool, { Duplex } = __webpack_require__("stream"), { randomFillSync } = __webpack_require__("crypto"), PerMessageDeflate = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js"), { EMPTY_BUFFER, kWebSocket, NOOP } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js"), { isBlob, isValidStatusCode } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/validation.js"), { mask: applyMask, toBuffer } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js"), kByteLength = Symbol('kByteLength'), maskBuffer = Buffer.alloc(4), randomPoolPointer = 8192;
|
|
552
543
|
class Sender {
|
|
553
544
|
constructor(socket, extensions, generateMask){
|
|
554
545
|
this._extensions = extensions || {}, generateMask && (this._generateMask = generateMask, this._maskBuffer = Buffer.alloc(4)), this._socket = socket, this._firstFragment = !0, this._compress = !1, this._bufferedBytes = 0, this._queue = [], this._state = 0, this.onerror = NOOP, this[kWebSocket] = void 0;
|
|
@@ -728,7 +719,7 @@ __webpack_require__.add({
|
|
|
728
719
|
},
|
|
729
720
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/stream.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
730
721
|
__webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket.js");
|
|
731
|
-
let { Duplex } = __webpack_require__("stream
|
|
722
|
+
let { Duplex } = __webpack_require__("stream");
|
|
732
723
|
function emitClose(stream) {
|
|
733
724
|
stream.emit('close');
|
|
734
725
|
}
|
|
@@ -963,7 +954,7 @@ __webpack_require__.add({
|
|
|
963
954
|
});
|
|
964
955
|
},
|
|
965
956
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket-server.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
966
|
-
let EventEmitter = __webpack_require__("events"), http = __webpack_require__("http
|
|
957
|
+
let EventEmitter = __webpack_require__("events"), http = __webpack_require__("http"), { Duplex } = __webpack_require__("stream"), { createHash } = __webpack_require__("crypto"), extension = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/extension.js"), PerMessageDeflate = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js"), subprotocol = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/subprotocol.js"), WebSocket = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket.js"), { CLOSE_TIMEOUT, GUID, kWebSocket } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js"), keyRegex = /^[+/0-9A-Za-z]{22}==$/;
|
|
967
958
|
function addListeners(server, map) {
|
|
968
959
|
for (let event of Object.keys(map))server.on(event, map[event]);
|
|
969
960
|
return function removeListeners() {
|
|
@@ -1134,7 +1125,7 @@ __webpack_require__.add({
|
|
|
1134
1125
|
};
|
|
1135
1126
|
},
|
|
1136
1127
|
"../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1137
|
-
let EventEmitter = __webpack_require__("events"), https = __webpack_require__("https
|
|
1128
|
+
let EventEmitter = __webpack_require__("events"), https = __webpack_require__("https"), http = __webpack_require__("http"), net = __webpack_require__("net"), tls = __webpack_require__("tls"), { randomBytes, createHash } = __webpack_require__("crypto"), { Duplex, Readable } = __webpack_require__("stream"), { URL } = __webpack_require__("url?5f07"), PerMessageDeflate = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js"), Receiver = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/receiver.js"), Sender = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/sender.js"), { isBlob } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/validation.js"), { BINARY_TYPES, CLOSE_TIMEOUT, EMPTY_BUFFER, GUID, kForOnEventAttribute, kListener, kStatusCode, kWebSocket, NOOP } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js"), { EventTarget: { addEventListener, removeEventListener } } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/event-target.js"), { format, parse } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/extension.js"), { toBuffer } = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js"), kAborted = Symbol('kAborted'), protocolVersions = [
|
|
1138
1129
|
8,
|
|
1139
1130
|
13
|
|
1140
1131
|
], readyStates = [
|
|
@@ -1515,33 +1506,6 @@ __webpack_require__.add({
|
|
|
1515
1506
|
}
|
|
1516
1507
|
});
|
|
1517
1508
|
}), WebSocket.prototype.addEventListener = addEventListener, WebSocket.prototype.removeEventListener = removeEventListener, module.exports = WebSocket;
|
|
1518
|
-
},
|
|
1519
|
-
buffer (module) {
|
|
1520
|
-
module.exports = __rspack_external_buffer;
|
|
1521
|
-
},
|
|
1522
|
-
crypto (module) {
|
|
1523
|
-
module.exports = __rspack_external_crypto;
|
|
1524
|
-
},
|
|
1525
|
-
"http?bf5e" (module) {
|
|
1526
|
-
module.exports = __rspack_external_http;
|
|
1527
|
-
},
|
|
1528
|
-
"https?be51" (module) {
|
|
1529
|
-
module.exports = __rspack_external_https;
|
|
1530
|
-
},
|
|
1531
|
-
net (module) {
|
|
1532
|
-
module.exports = __rspack_external_net;
|
|
1533
|
-
},
|
|
1534
|
-
"stream?91df" (module) {
|
|
1535
|
-
module.exports = __rspack_external_stream;
|
|
1536
|
-
},
|
|
1537
|
-
tls (module) {
|
|
1538
|
-
module.exports = __rspack_external_tls;
|
|
1539
|
-
},
|
|
1540
|
-
"url?a954" (module) {
|
|
1541
|
-
module.exports = __rspack_external_url;
|
|
1542
|
-
},
|
|
1543
|
-
"zlib?d5a8" (module) {
|
|
1544
|
-
module.exports = __rspack_external_zlib;
|
|
1545
1509
|
}
|
|
1546
1510
|
});
|
|
1547
1511
|
let websocket_server = __webpack_require__("../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket-server.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.11",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"types.d.ts"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@rspack/core": "2.0.0-beta.
|
|
40
|
-
"@swc/helpers": "^0.5.
|
|
39
|
+
"@rspack/core": "2.0.0-beta.9",
|
|
40
|
+
"@swc/helpers": "^0.5.20"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"core-js": ">= 3.0.0"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@jridgewell/remapping": "^2.3.5",
|
|
52
52
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
53
|
-
"@rslib/core": "0.20.
|
|
53
|
+
"@rslib/core": "0.20.1",
|
|
54
54
|
"@types/cors": "^2.8.19",
|
|
55
55
|
"@types/node": "^24.12.0",
|
|
56
56
|
"@types/on-finished": "2.3.5",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"css-loader": "7.1.4",
|
|
65
65
|
"deepmerge": "^4.3.1",
|
|
66
66
|
"dotenv-expand": "12.0.3",
|
|
67
|
-
"html-rspack-plugin": "6.1.
|
|
67
|
+
"html-rspack-plugin": "6.1.8",
|
|
68
68
|
"http-proxy-middleware": "^3.0.5",
|
|
69
69
|
"jiti": "^2.6.1",
|
|
70
70
|
"launch-editor-middleware": "^2.13.2",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"prebundle": "1.6.4",
|
|
79
79
|
"range-parser": "^1.2.1",
|
|
80
80
|
"reduce-configs": "^1.1.1",
|
|
81
|
-
"rslog": "^2.1.
|
|
81
|
+
"rslog": "^2.1.1",
|
|
82
82
|
"rspack-chain": "^2.0.0-beta.1",
|
|
83
83
|
"rspack-manifest-plugin": "5.2.1",
|
|
84
84
|
"sirv": "^3.0.2",
|
|
@@ -98,9 +98,8 @@
|
|
|
98
98
|
"registry": "https://registry.npmjs.org/"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
|
-
"build": "rslib
|
|
102
|
-
"dev": "rslib
|
|
103
|
-
"prebundle": "prebundle"
|
|
104
|
-
"bump": "pnpx bumpp --no-tag"
|
|
101
|
+
"build": "rslib",
|
|
102
|
+
"dev": "rslib -w",
|
|
103
|
+
"prebundle": "prebundle"
|
|
105
104
|
}
|
|
106
105
|
}
|
package/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|