@lynx-js/rspeedy 0.13.4 → 0.13.6
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/CHANGELOG.md +25 -0
- package/dist/0~src_config_validate_ts.js +30 -30
- package/dist/0~src_plugins_dev_plugin_ts.js +1 -1
- package/dist/1~src_cli_commands_ts.js +2 -2
- package/dist/1~src_config_validate_ts.js +30 -30
- package/dist/1~src_plugins_api_plugin_ts.js +2 -3
- package/dist/1~src_plugins_dev_plugin_ts.js +1 -1
- package/dist/src_cli_main_ts.js +8 -8
- package/dist/src_index_ts.js +1 -1
- package/package.json +4 -4
- package/dist/1~src_version_ts.js +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.13.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Rename Web Preview label to fix URL alignment ([#2355](https://github.com/lynx-family/lynx-stack/pull/2355))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`799fda8`](https://github.com/lynx-family/lynx-stack/commit/799fda8bc1cc14af2fd340eb806f5cfbac3c3fe3)]:
|
|
10
|
+
- @lynx-js/cache-events-webpack-plugin@0.0.3
|
|
11
|
+
- @lynx-js/web-rsbuild-server-middleware@0.19.9
|
|
12
|
+
|
|
13
|
+
## 0.13.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- feat: opt-in the web platform's new binary output format ([#2281](https://github.com/lynx-family/lynx-stack/pull/2281))
|
|
18
|
+
|
|
19
|
+
Introduce a new flag to enable the new binary output format.
|
|
20
|
+
|
|
21
|
+
Currently it's an internal-use-only flag that will be removed in the future; set the corresponding environment variable to 'true' to enable it.
|
|
22
|
+
|
|
23
|
+
- Avoid generating `Rsbuild vundefined` in greeting message. ([#2275](https://github.com/lynx-family/lynx-stack/pull/2275))
|
|
24
|
+
|
|
25
|
+
- Updated dependencies []:
|
|
26
|
+
- @lynx-js/web-rsbuild-server-middleware@0.19.8
|
|
27
|
+
|
|
3
28
|
## 0.13.4
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -1537,9 +1537,9 @@ const validateConfig = (()=>{
|
|
|
1537
1537
|
if (void 0 === value) return true;
|
|
1538
1538
|
return "string" == typeof value || "boolean" == typeof value;
|
|
1539
1539
|
});
|
|
1540
|
-
const _io43 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
1540
|
+
const _io43 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@7624"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1541
1541
|
if ([
|
|
1542
|
-
"__@toStringTag@
|
|
1542
|
+
"__@toStringTag@7624"
|
|
1543
1543
|
].some((prop)=>key === prop)) return true;
|
|
1544
1544
|
const value = input[key];
|
|
1545
1545
|
if (void 0 === value) return true;
|
|
@@ -3409,14 +3409,14 @@ const validateConfig = (()=>{
|
|
|
3409
3409
|
if (void 0 === value) return true;
|
|
3410
3410
|
return false;
|
|
3411
3411
|
}));
|
|
3412
|
-
const _io162 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
3412
|
+
const _io162 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@7624"] && Object.keys(input).every((key)=>{
|
|
3413
3413
|
if ([
|
|
3414
3414
|
"BYTES_PER_ELEMENT",
|
|
3415
3415
|
"buffer",
|
|
3416
3416
|
"byteLength",
|
|
3417
3417
|
"byteOffset",
|
|
3418
3418
|
"length",
|
|
3419
|
-
"__@toStringTag@
|
|
3419
|
+
"__@toStringTag@7624"
|
|
3420
3420
|
].some((prop)=>key === prop)) return true;
|
|
3421
3421
|
const value = input[key];
|
|
3422
3422
|
if (void 0 === value) return true;
|
|
@@ -3449,14 +3449,14 @@ const validateConfig = (()=>{
|
|
|
3449
3449
|
if (void 0 === value) return true;
|
|
3450
3450
|
return false;
|
|
3451
3451
|
});
|
|
3452
|
-
const _io166 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Float16Array" === input["__@toStringTag@
|
|
3452
|
+
const _io166 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Float16Array" === input["__@toStringTag@7624"] && Object.keys(input).every((key)=>{
|
|
3453
3453
|
if ([
|
|
3454
3454
|
"BYTES_PER_ELEMENT",
|
|
3455
3455
|
"buffer",
|
|
3456
3456
|
"byteLength",
|
|
3457
3457
|
"byteOffset",
|
|
3458
3458
|
"length",
|
|
3459
|
-
"__@toStringTag@
|
|
3459
|
+
"__@toStringTag@7624"
|
|
3460
3460
|
].some((prop)=>key === prop)) return true;
|
|
3461
3461
|
const value = input[key];
|
|
3462
3462
|
if (void 0 === value) return true;
|
|
@@ -6668,9 +6668,9 @@ const validateConfig = (()=>{
|
|
|
6668
6668
|
if (void 0 === value) return true;
|
|
6669
6669
|
return false;
|
|
6670
6670
|
}));
|
|
6671
|
-
const _io429 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
6671
|
+
const _io429 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@7624"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6672
6672
|
if ([
|
|
6673
|
-
"__@toStringTag@
|
|
6673
|
+
"__@toStringTag@7624"
|
|
6674
6674
|
].some((prop)=>key === prop)) return true;
|
|
6675
6675
|
const value = input[key];
|
|
6676
6676
|
if (void 0 === value) return true;
|
|
@@ -7394,18 +7394,18 @@ const validateConfig = (()=>{
|
|
|
7394
7394
|
return false;
|
|
7395
7395
|
})();
|
|
7396
7396
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
7397
|
-
if (void 0 !== input["__@toStringTag@
|
|
7397
|
+
if (void 0 !== input["__@toStringTag@7624"]) return _io162(input, _exceptionable);
|
|
7398
7398
|
if (void 0 !== input.pem) return _io163(input, _exceptionable);
|
|
7399
7399
|
return false;
|
|
7400
7400
|
})();
|
|
7401
7401
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
7402
|
-
if (void 0 !== input["__@toStringTag@
|
|
7402
|
+
if (void 0 !== input["__@toStringTag@7624"]) return _io162(input, _exceptionable);
|
|
7403
7403
|
if (void 0 !== input.buf) return _io164(input, _exceptionable);
|
|
7404
7404
|
return false;
|
|
7405
7405
|
})();
|
|
7406
7406
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
7407
7407
|
if (void 0 !== input.name) return _io428(input, _exceptionable);
|
|
7408
|
-
if (void 0 !== input["__@toStringTag@
|
|
7408
|
+
if (void 0 !== input["__@toStringTag@7624"]) return _io429(input, _exceptionable);
|
|
7409
7409
|
return false;
|
|
7410
7410
|
})();
|
|
7411
7411
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -10101,14 +10101,14 @@ const validateConfig = (()=>{
|
|
|
10101
10101
|
}).every((flag)=>flag)
|
|
10102
10102
|
].every((flag)=>flag);
|
|
10103
10103
|
const _vo43 = (input, _path, _exceptionable = true)=>[
|
|
10104
|
-
"string" == typeof input["__@toStringTag@
|
|
10105
|
-
path: _path + "[\"__@toStringTag@
|
|
10104
|
+
"string" == typeof input["__@toStringTag@7624"] || _report(_exceptionable, {
|
|
10105
|
+
path: _path + "[\"__@toStringTag@7624\"]",
|
|
10106
10106
|
expected: "string",
|
|
10107
|
-
value: input["__@toStringTag@
|
|
10107
|
+
value: input["__@toStringTag@7624"]
|
|
10108
10108
|
}),
|
|
10109
10109
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
10110
10110
|
if ([
|
|
10111
|
-
"__@toStringTag@
|
|
10111
|
+
"__@toStringTag@7624"
|
|
10112
10112
|
].some((prop)=>key === prop)) return true;
|
|
10113
10113
|
const value = input[key];
|
|
10114
10114
|
if (void 0 === value) return true;
|
|
@@ -20537,10 +20537,10 @@ const validateConfig = (()=>{
|
|
|
20537
20537
|
expected: "number",
|
|
20538
20538
|
value: input.length
|
|
20539
20539
|
}),
|
|
20540
|
-
"Uint8Array" === input["__@toStringTag@
|
|
20541
|
-
path: _path + "[\"__@toStringTag@
|
|
20540
|
+
"Uint8Array" === input["__@toStringTag@7624"] || _report(_exceptionable, {
|
|
20541
|
+
path: _path + "[\"__@toStringTag@7624\"]",
|
|
20542
20542
|
expected: "\"Uint8Array\"",
|
|
20543
|
-
value: input["__@toStringTag@
|
|
20543
|
+
value: input["__@toStringTag@7624"]
|
|
20544
20544
|
}),
|
|
20545
20545
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
20546
20546
|
if ([
|
|
@@ -20549,7 +20549,7 @@ const validateConfig = (()=>{
|
|
|
20549
20549
|
"byteLength",
|
|
20550
20550
|
"byteOffset",
|
|
20551
20551
|
"length",
|
|
20552
|
-
"__@toStringTag@
|
|
20552
|
+
"__@toStringTag@7624"
|
|
20553
20553
|
].some((prop)=>key === prop)) return true;
|
|
20554
20554
|
const value = input[key];
|
|
20555
20555
|
if (void 0 === value) return true;
|
|
@@ -20700,10 +20700,10 @@ const validateConfig = (()=>{
|
|
|
20700
20700
|
expected: "number",
|
|
20701
20701
|
value: input.length
|
|
20702
20702
|
}),
|
|
20703
|
-
"Float16Array" === input["__@toStringTag@
|
|
20704
|
-
path: _path + "[\"__@toStringTag@
|
|
20703
|
+
"Float16Array" === input["__@toStringTag@7624"] || _report(_exceptionable, {
|
|
20704
|
+
path: _path + "[\"__@toStringTag@7624\"]",
|
|
20705
20705
|
expected: "\"Float16Array\"",
|
|
20706
|
-
value: input["__@toStringTag@
|
|
20706
|
+
value: input["__@toStringTag@7624"]
|
|
20707
20707
|
}),
|
|
20708
20708
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
20709
20709
|
if ([
|
|
@@ -20712,7 +20712,7 @@ const validateConfig = (()=>{
|
|
|
20712
20712
|
"byteLength",
|
|
20713
20713
|
"byteOffset",
|
|
20714
20714
|
"length",
|
|
20715
|
-
"__@toStringTag@
|
|
20715
|
+
"__@toStringTag@7624"
|
|
20716
20716
|
].some((prop)=>key === prop)) return true;
|
|
20717
20717
|
const value = input[key];
|
|
20718
20718
|
if (void 0 === value) return true;
|
|
@@ -38567,14 +38567,14 @@ const validateConfig = (()=>{
|
|
|
38567
38567
|
}).every((flag)=>flag)
|
|
38568
38568
|
].every((flag)=>flag);
|
|
38569
38569
|
const _vo429 = (input, _path, _exceptionable = true)=>[
|
|
38570
|
-
"string" == typeof input["__@toStringTag@
|
|
38571
|
-
path: _path + "[\"__@toStringTag@
|
|
38570
|
+
"string" == typeof input["__@toStringTag@7624"] || _report(_exceptionable, {
|
|
38571
|
+
path: _path + "[\"__@toStringTag@7624\"]",
|
|
38572
38572
|
expected: "string",
|
|
38573
|
-
value: input["__@toStringTag@
|
|
38573
|
+
value: input["__@toStringTag@7624"]
|
|
38574
38574
|
}),
|
|
38575
38575
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
38576
38576
|
if ([
|
|
38577
|
-
"__@toStringTag@
|
|
38577
|
+
"__@toStringTag@7624"
|
|
38578
38578
|
].some((prop)=>key === prop)) return true;
|
|
38579
38579
|
const value = input[key];
|
|
38580
38580
|
if (void 0 === value) return true;
|
|
@@ -42322,7 +42322,7 @@ const validateConfig = (()=>{
|
|
|
42322
42322
|
});
|
|
42323
42323
|
})();
|
|
42324
42324
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
42325
|
-
if (void 0 !== input["__@toStringTag@
|
|
42325
|
+
if (void 0 !== input["__@toStringTag@7624"]) return _vo162(input, _path, _exceptionable);
|
|
42326
42326
|
if (void 0 !== input.pem) return _vo163(input, _path, _exceptionable);
|
|
42327
42327
|
return _report(_exceptionable, {
|
|
42328
42328
|
path: _path,
|
|
@@ -42331,7 +42331,7 @@ const validateConfig = (()=>{
|
|
|
42331
42331
|
});
|
|
42332
42332
|
})();
|
|
42333
42333
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
42334
|
-
if (void 0 !== input["__@toStringTag@
|
|
42334
|
+
if (void 0 !== input["__@toStringTag@7624"]) return _vo162(input, _path, _exceptionable);
|
|
42335
42335
|
if (void 0 !== input.buf) return _vo164(input, _path, _exceptionable);
|
|
42336
42336
|
return _report(_exceptionable, {
|
|
42337
42337
|
path: _path,
|
|
@@ -42341,7 +42341,7 @@ const validateConfig = (()=>{
|
|
|
42341
42341
|
})();
|
|
42342
42342
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
42343
42343
|
if (void 0 !== input.name) return _vo428(input, _path, _exceptionable);
|
|
42344
|
-
if (void 0 !== input["__@toStringTag@
|
|
42344
|
+
if (void 0 !== input["__@toStringTag@7624"]) return _vo429(input, _path, _exceptionable);
|
|
42345
42345
|
return _report(_exceptionable, {
|
|
42346
42346
|
path: _path,
|
|
42347
42347
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
|
@@ -88,7 +88,7 @@ function pluginDev(options, server) {
|
|
|
88
88
|
url: new URL(pathname, baseForUrls).toString()
|
|
89
89
|
});
|
|
90
90
|
if ('web' === environmentName) finalUrls.push({
|
|
91
|
-
label: "
|
|
91
|
+
label: "∟ Preview",
|
|
92
92
|
url: new URL(`/__web_preview?casename=${encodeURIComponent(pathname)}`, baseForUrls).toString()
|
|
93
93
|
});
|
|
94
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
2
|
import "./1~node_path.js";
|
|
3
|
-
import {
|
|
3
|
+
import { version_version } from "./src_cli_main_ts.js";
|
|
4
4
|
const external_node_path_ = __webpack_require__("node:path");
|
|
5
5
|
function applyCommonOptions(command) {
|
|
6
6
|
command.option('-c --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--env-mode <mode>', 'specify the env mode to load the .env.[mode] file').option('--no-env', 'disable loading `.env` files"').option('-m --mode <mode>', 'specify the build mode, can be `development`, `production` or `none`').option('-r --root <root>', 'set the project root directory (absolute path or relative to cwd)');
|
|
@@ -11,7 +11,7 @@ function resolveRoot(cwd, root) {
|
|
|
11
11
|
}
|
|
12
12
|
function apply(program) {
|
|
13
13
|
const cwd = process.cwd();
|
|
14
|
-
program.name('rspeedy').usage('<command> [options]').version(
|
|
14
|
+
program.name('rspeedy').usage('<command> [options]').version(version_version).showHelpAfterError(true).showSuggestionAfterError(true).exitOverride();
|
|
15
15
|
const buildCommand = program.command('build');
|
|
16
16
|
buildCommand.description('Build the project in production mode').option('--environment <name...>', 'specify the name of environment to build').option('--watch', 'Enable watch mode to automatically rebuild on file changes').action(async (buildOptions)=>{
|
|
17
17
|
const actualRoot = resolveRoot(cwd, buildOptions.root);
|
|
@@ -1537,9 +1537,9 @@ const validateConfig = (()=>{
|
|
|
1537
1537
|
if (void 0 === value) return true;
|
|
1538
1538
|
return "string" == typeof value || "boolean" == typeof value;
|
|
1539
1539
|
});
|
|
1540
|
-
const _io43 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
1540
|
+
const _io43 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@940"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1541
1541
|
if ([
|
|
1542
|
-
"__@toStringTag@
|
|
1542
|
+
"__@toStringTag@940"
|
|
1543
1543
|
].some((prop)=>key === prop)) return true;
|
|
1544
1544
|
const value = input[key];
|
|
1545
1545
|
if (void 0 === value) return true;
|
|
@@ -3409,14 +3409,14 @@ const validateConfig = (()=>{
|
|
|
3409
3409
|
if (void 0 === value) return true;
|
|
3410
3410
|
return false;
|
|
3411
3411
|
}));
|
|
3412
|
-
const _io162 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
3412
|
+
const _io162 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@940"] && Object.keys(input).every((key)=>{
|
|
3413
3413
|
if ([
|
|
3414
3414
|
"BYTES_PER_ELEMENT",
|
|
3415
3415
|
"buffer",
|
|
3416
3416
|
"byteLength",
|
|
3417
3417
|
"byteOffset",
|
|
3418
3418
|
"length",
|
|
3419
|
-
"__@toStringTag@
|
|
3419
|
+
"__@toStringTag@940"
|
|
3420
3420
|
].some((prop)=>key === prop)) return true;
|
|
3421
3421
|
const value = input[key];
|
|
3422
3422
|
if (void 0 === value) return true;
|
|
@@ -3449,14 +3449,14 @@ const validateConfig = (()=>{
|
|
|
3449
3449
|
if (void 0 === value) return true;
|
|
3450
3450
|
return false;
|
|
3451
3451
|
});
|
|
3452
|
-
const _io166 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Float16Array" === input["__@toStringTag@
|
|
3452
|
+
const _io166 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Float16Array" === input["__@toStringTag@940"] && Object.keys(input).every((key)=>{
|
|
3453
3453
|
if ([
|
|
3454
3454
|
"BYTES_PER_ELEMENT",
|
|
3455
3455
|
"buffer",
|
|
3456
3456
|
"byteLength",
|
|
3457
3457
|
"byteOffset",
|
|
3458
3458
|
"length",
|
|
3459
|
-
"__@toStringTag@
|
|
3459
|
+
"__@toStringTag@940"
|
|
3460
3460
|
].some((prop)=>key === prop)) return true;
|
|
3461
3461
|
const value = input[key];
|
|
3462
3462
|
if (void 0 === value) return true;
|
|
@@ -6668,9 +6668,9 @@ const validateConfig = (()=>{
|
|
|
6668
6668
|
if (void 0 === value) return true;
|
|
6669
6669
|
return false;
|
|
6670
6670
|
}));
|
|
6671
|
-
const _io429 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
6671
|
+
const _io429 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@940"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6672
6672
|
if ([
|
|
6673
|
-
"__@toStringTag@
|
|
6673
|
+
"__@toStringTag@940"
|
|
6674
6674
|
].some((prop)=>key === prop)) return true;
|
|
6675
6675
|
const value = input[key];
|
|
6676
6676
|
if (void 0 === value) return true;
|
|
@@ -7394,18 +7394,18 @@ const validateConfig = (()=>{
|
|
|
7394
7394
|
return false;
|
|
7395
7395
|
})();
|
|
7396
7396
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
7397
|
-
if (void 0 !== input["__@toStringTag@
|
|
7397
|
+
if (void 0 !== input["__@toStringTag@940"]) return _io162(input, _exceptionable);
|
|
7398
7398
|
if (void 0 !== input.pem) return _io163(input, _exceptionable);
|
|
7399
7399
|
return false;
|
|
7400
7400
|
})();
|
|
7401
7401
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
7402
|
-
if (void 0 !== input["__@toStringTag@
|
|
7402
|
+
if (void 0 !== input["__@toStringTag@940"]) return _io162(input, _exceptionable);
|
|
7403
7403
|
if (void 0 !== input.buf) return _io164(input, _exceptionable);
|
|
7404
7404
|
return false;
|
|
7405
7405
|
})();
|
|
7406
7406
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
7407
7407
|
if (void 0 !== input.name) return _io428(input, _exceptionable);
|
|
7408
|
-
if (void 0 !== input["__@toStringTag@
|
|
7408
|
+
if (void 0 !== input["__@toStringTag@940"]) return _io429(input, _exceptionable);
|
|
7409
7409
|
return false;
|
|
7410
7410
|
})();
|
|
7411
7411
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -10101,14 +10101,14 @@ const validateConfig = (()=>{
|
|
|
10101
10101
|
}).every((flag)=>flag)
|
|
10102
10102
|
].every((flag)=>flag);
|
|
10103
10103
|
const _vo43 = (input, _path, _exceptionable = true)=>[
|
|
10104
|
-
"string" == typeof input["__@toStringTag@
|
|
10105
|
-
path: _path + "[\"__@toStringTag@
|
|
10104
|
+
"string" == typeof input["__@toStringTag@940"] || _report(_exceptionable, {
|
|
10105
|
+
path: _path + "[\"__@toStringTag@940\"]",
|
|
10106
10106
|
expected: "string",
|
|
10107
|
-
value: input["__@toStringTag@
|
|
10107
|
+
value: input["__@toStringTag@940"]
|
|
10108
10108
|
}),
|
|
10109
10109
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
10110
10110
|
if ([
|
|
10111
|
-
"__@toStringTag@
|
|
10111
|
+
"__@toStringTag@940"
|
|
10112
10112
|
].some((prop)=>key === prop)) return true;
|
|
10113
10113
|
const value = input[key];
|
|
10114
10114
|
if (void 0 === value) return true;
|
|
@@ -20537,10 +20537,10 @@ const validateConfig = (()=>{
|
|
|
20537
20537
|
expected: "number",
|
|
20538
20538
|
value: input.length
|
|
20539
20539
|
}),
|
|
20540
|
-
"Uint8Array" === input["__@toStringTag@
|
|
20541
|
-
path: _path + "[\"__@toStringTag@
|
|
20540
|
+
"Uint8Array" === input["__@toStringTag@940"] || _report(_exceptionable, {
|
|
20541
|
+
path: _path + "[\"__@toStringTag@940\"]",
|
|
20542
20542
|
expected: "\"Uint8Array\"",
|
|
20543
|
-
value: input["__@toStringTag@
|
|
20543
|
+
value: input["__@toStringTag@940"]
|
|
20544
20544
|
}),
|
|
20545
20545
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
20546
20546
|
if ([
|
|
@@ -20549,7 +20549,7 @@ const validateConfig = (()=>{
|
|
|
20549
20549
|
"byteLength",
|
|
20550
20550
|
"byteOffset",
|
|
20551
20551
|
"length",
|
|
20552
|
-
"__@toStringTag@
|
|
20552
|
+
"__@toStringTag@940"
|
|
20553
20553
|
].some((prop)=>key === prop)) return true;
|
|
20554
20554
|
const value = input[key];
|
|
20555
20555
|
if (void 0 === value) return true;
|
|
@@ -20700,10 +20700,10 @@ const validateConfig = (()=>{
|
|
|
20700
20700
|
expected: "number",
|
|
20701
20701
|
value: input.length
|
|
20702
20702
|
}),
|
|
20703
|
-
"Float16Array" === input["__@toStringTag@
|
|
20704
|
-
path: _path + "[\"__@toStringTag@
|
|
20703
|
+
"Float16Array" === input["__@toStringTag@940"] || _report(_exceptionable, {
|
|
20704
|
+
path: _path + "[\"__@toStringTag@940\"]",
|
|
20705
20705
|
expected: "\"Float16Array\"",
|
|
20706
|
-
value: input["__@toStringTag@
|
|
20706
|
+
value: input["__@toStringTag@940"]
|
|
20707
20707
|
}),
|
|
20708
20708
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
20709
20709
|
if ([
|
|
@@ -20712,7 +20712,7 @@ const validateConfig = (()=>{
|
|
|
20712
20712
|
"byteLength",
|
|
20713
20713
|
"byteOffset",
|
|
20714
20714
|
"length",
|
|
20715
|
-
"__@toStringTag@
|
|
20715
|
+
"__@toStringTag@940"
|
|
20716
20716
|
].some((prop)=>key === prop)) return true;
|
|
20717
20717
|
const value = input[key];
|
|
20718
20718
|
if (void 0 === value) return true;
|
|
@@ -38567,14 +38567,14 @@ const validateConfig = (()=>{
|
|
|
38567
38567
|
}).every((flag)=>flag)
|
|
38568
38568
|
].every((flag)=>flag);
|
|
38569
38569
|
const _vo429 = (input, _path, _exceptionable = true)=>[
|
|
38570
|
-
"string" == typeof input["__@toStringTag@
|
|
38571
|
-
path: _path + "[\"__@toStringTag@
|
|
38570
|
+
"string" == typeof input["__@toStringTag@940"] || _report(_exceptionable, {
|
|
38571
|
+
path: _path + "[\"__@toStringTag@940\"]",
|
|
38572
38572
|
expected: "string",
|
|
38573
|
-
value: input["__@toStringTag@
|
|
38573
|
+
value: input["__@toStringTag@940"]
|
|
38574
38574
|
}),
|
|
38575
38575
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
38576
38576
|
if ([
|
|
38577
|
-
"__@toStringTag@
|
|
38577
|
+
"__@toStringTag@940"
|
|
38578
38578
|
].some((prop)=>key === prop)) return true;
|
|
38579
38579
|
const value = input[key];
|
|
38580
38580
|
if (void 0 === value) return true;
|
|
@@ -42322,7 +42322,7 @@ const validateConfig = (()=>{
|
|
|
42322
42322
|
});
|
|
42323
42323
|
})();
|
|
42324
42324
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
42325
|
-
if (void 0 !== input["__@toStringTag@
|
|
42325
|
+
if (void 0 !== input["__@toStringTag@940"]) return _vo162(input, _path, _exceptionable);
|
|
42326
42326
|
if (void 0 !== input.pem) return _vo163(input, _path, _exceptionable);
|
|
42327
42327
|
return _report(_exceptionable, {
|
|
42328
42328
|
path: _path,
|
|
@@ -42331,7 +42331,7 @@ const validateConfig = (()=>{
|
|
|
42331
42331
|
});
|
|
42332
42332
|
})();
|
|
42333
42333
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
42334
|
-
if (void 0 !== input["__@toStringTag@
|
|
42334
|
+
if (void 0 !== input["__@toStringTag@940"]) return _vo162(input, _path, _exceptionable);
|
|
42335
42335
|
if (void 0 !== input.buf) return _vo164(input, _path, _exceptionable);
|
|
42336
42336
|
return _report(_exceptionable, {
|
|
42337
42337
|
path: _path,
|
|
@@ -42341,7 +42341,7 @@ const validateConfig = (()=>{
|
|
|
42341
42341
|
})();
|
|
42342
42342
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
42343
42343
|
if (void 0 !== input.name) return _vo428(input, _path, _exceptionable);
|
|
42344
|
-
if (void 0 !== input["__@toStringTag@
|
|
42344
|
+
if (void 0 !== input["__@toStringTag@940"]) return _vo429(input, _path, _exceptionable);
|
|
42345
42345
|
return _report(_exceptionable, {
|
|
42346
42346
|
path: _path,
|
|
42347
42347
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { debug, logger } from "./src_cli_main_ts.js";
|
|
2
|
-
import { version } from "./1~src_version_ts.js";
|
|
1
|
+
import { debug, logger, version_version } from "./src_cli_main_ts.js";
|
|
3
2
|
const sAPI = Symbol.for('rspeedy.api');
|
|
4
3
|
function pluginAPI(config) {
|
|
5
4
|
return {
|
|
@@ -15,7 +14,7 @@ function pluginAPI(config) {
|
|
|
15
14
|
return exit(code);
|
|
16
15
|
},
|
|
17
16
|
logger: logger,
|
|
18
|
-
version:
|
|
17
|
+
version: version_version
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
};
|
|
@@ -90,7 +90,7 @@ function pluginDev(options, server) {
|
|
|
90
90
|
url: new URL(pathname, baseForUrls).toString()
|
|
91
91
|
});
|
|
92
92
|
if ('web' === environmentName) finalUrls.push({
|
|
93
|
-
label: "
|
|
93
|
+
label: "∟ Preview",
|
|
94
94
|
url: new URL(`/__web_preview?casename=${encodeURIComponent(pathname)}`, baseForUrls).toString()
|
|
95
95
|
});
|
|
96
96
|
}
|
package/dist/src_cli_main_ts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as __rspack_external_node_process_786449bf from "node:process";
|
|
2
2
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
|
-
import { createRsbuild, logger, mergeRsbuildConfig, rspack, version
|
|
3
|
+
import { createRsbuild, logger, mergeRsbuildConfig, rspack, version } from "@rsbuild/core";
|
|
4
4
|
__webpack_require__.add({
|
|
5
5
|
"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
|
|
6
6
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
@@ -191,6 +191,11 @@ async function exit_onExit(signal) {
|
|
|
191
191
|
debug(`awaiting exit promises(length: ${exitPromises.length})...`);
|
|
192
192
|
await Promise.allSettled(exitPromises);
|
|
193
193
|
}
|
|
194
|
+
var package_namespaceObject = {
|
|
195
|
+
rE: "0.13.6"
|
|
196
|
+
};
|
|
197
|
+
const version_version = package_namespaceObject.rE;
|
|
198
|
+
const rspackVersion = rspack.rspackVersion;
|
|
194
199
|
function initNodeEnv(argv) {
|
|
195
200
|
if (!process.env['NODE_ENV']) {
|
|
196
201
|
const NODE_ENV = argv.includes('dev') || argv.includes('preview') ? 'development' : 'production';
|
|
@@ -202,12 +207,7 @@ async function main(argv) {
|
|
|
202
207
|
initNodeEnv(argv);
|
|
203
208
|
const { npm_execpath } = process.env;
|
|
204
209
|
if (!npm_execpath || npm_execpath.includes('npm-cli.js') || npm_execpath.includes('npx-cli.js')) console.log();
|
|
205
|
-
|
|
206
|
-
version: mod.version,
|
|
207
|
-
rsbuildVersion: mod.core_version,
|
|
208
|
-
rspackVersion: mod.rspackVersion
|
|
209
|
-
}));
|
|
210
|
-
logger.greet(` Rspeedy v${version} (Rsbuild v${rsbuildVersion}, Rspack v${rspackVersion})\n`);
|
|
210
|
+
logger.greet(` Rspeedy v${version_version} (Rsbuild v${version}, Rspack v${rspackVersion})\n`);
|
|
211
211
|
try {
|
|
212
212
|
const [{ Command }, { apply }] = await Promise.all([
|
|
213
213
|
import("./1~node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js").then((mod)=>({
|
|
@@ -232,4 +232,4 @@ async function main(argv) {
|
|
|
232
232
|
return exit_exit(1);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
export {
|
|
235
|
+
export { createRsbuild, debug, debugList, exit_exit, isDebug, logger, main, mergeRsbuildConfig, version_version };
|
package/dist/src_index_ts.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"@rsbuild/core": "1.7.3",
|
|
52
52
|
"@rsbuild/plugin-css-minimizer": "1.1.1",
|
|
53
53
|
"@rsdoctor/rspack-plugin": "1.2.3",
|
|
54
|
-
"@lynx-js/cache-events-webpack-plugin": "^0.0.
|
|
54
|
+
"@lynx-js/cache-events-webpack-plugin": "^0.0.3",
|
|
55
55
|
"@lynx-js/chunk-loading-webpack-plugin": "^0.3.3",
|
|
56
|
-
"@lynx-js/web-rsbuild-server-middleware": "0.19.
|
|
56
|
+
"@lynx-js/web-rsbuild-server-middleware": "0.19.9",
|
|
57
57
|
"@lynx-js/webpack-dev-transport": "^0.2.0",
|
|
58
58
|
"@lynx-js/websocket": "^0.0.4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@microsoft/api-extractor": "7.
|
|
61
|
+
"@microsoft/api-extractor": "7.57.6",
|
|
62
62
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
63
63
|
"chokidar": "^4.0.3",
|
|
64
64
|
"commander": "^13.1.0",
|
package/dist/1~src_version_ts.js
DELETED