@lynx-js/rspeedy-canary 0.10.8-canary-20250825-e4d116b6 → 0.10.8-canary-20250826-bc7f532b
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 +5 -3
- package/dist/index.d.ts +71 -1
- package/dist/index.js +1 -1
- package/dist/src_cli_build_ts.js +1 -1
- package/dist/src_cli_dev_ts.js +1 -1
- package/dist/src_cli_inspect_ts.js +1 -1
- package/dist/src_cli_preview_ts.js +1 -1
- package/dist/src_config_validate_ts.js +78 -30
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_rsdoctor_plugin_ts.js +13 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.10.8-canary-
|
|
3
|
+
## 0.10.8-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
When `performance.chunkSplit.strategy` is not `all-in-one`, Lynx native events are cached until the BTS chunk is fully loaded and are replayed when that chunk is ready. The `firstScreenSyncTiming` flag will no longer change to `jsReady` anymore.
|
|
10
10
|
|
|
11
|
+
- Support exporting `Promise` and function in `lynx.config.ts`. ([#1590](https://github.com/lynx-family/lynx-stack/pull/1590))
|
|
12
|
+
|
|
11
13
|
- Fix missing `publicPath` using when `rspeedy dev --mode production`. ([#1310](https://github.com/lynx-family/lynx-stack/pull/1310))
|
|
12
14
|
|
|
13
15
|
- Updated dependencies [[`aaca8f9`](https://github.com/lynx-family/lynx-stack/commit/aaca8f91d177061c7b0430cc5cb21a3602897534)]:
|
|
14
|
-
- @lynx-js/cache-events-webpack-plugin@0.0.1-canary-
|
|
15
|
-
- @lynx-js/chunk-loading-webpack-plugin@0.3.1-canary-
|
|
16
|
+
- @lynx-js/cache-events-webpack-plugin@0.0.1-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
|
|
17
|
+
- @lynx-js/chunk-loading-webpack-plugin@0.3.1-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
|
|
16
18
|
|
|
17
19
|
## 0.10.7
|
|
18
20
|
|
package/dist/index.d.ts
CHANGED
|
@@ -880,7 +880,6 @@ export declare interface Decorators {
|
|
|
880
880
|
* Use `defineConfig` in `lynx.config.ts`:
|
|
881
881
|
*
|
|
882
882
|
* ```ts
|
|
883
|
-
* //@ts-check
|
|
884
883
|
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
885
884
|
* export default defineConfig({
|
|
886
885
|
* // autocompletion works here!
|
|
@@ -891,6 +890,77 @@ export declare interface Decorators {
|
|
|
891
890
|
*/
|
|
892
891
|
export declare function defineConfig(config: Config): Config;
|
|
893
892
|
|
|
893
|
+
/**
|
|
894
|
+
* The `defineConfig` method is a helper function used to get TypeScript intellisense.
|
|
895
|
+
*
|
|
896
|
+
* @param config - The function that returns a config of Rspeedy.
|
|
897
|
+
* @returns - The identical function as the input.
|
|
898
|
+
*
|
|
899
|
+
* @example
|
|
900
|
+
*
|
|
901
|
+
* Use `defineConfig` in `lynx.config.ts`:
|
|
902
|
+
*
|
|
903
|
+
* ```ts
|
|
904
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
905
|
+
* export default defineConfig(() => {
|
|
906
|
+
* return {
|
|
907
|
+
* // autocompletion works here!
|
|
908
|
+
* }
|
|
909
|
+
* })
|
|
910
|
+
* ```
|
|
911
|
+
*
|
|
912
|
+
* @public
|
|
913
|
+
*/
|
|
914
|
+
export declare function defineConfig(config: () => Config): () => Config;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* The `defineConfig` method is a helper function used to get TypeScript intellisense.
|
|
918
|
+
*
|
|
919
|
+
* @param config - The promise that resolves to a config of Rspeedy.
|
|
920
|
+
* @returns - The identical promise as the input.
|
|
921
|
+
*
|
|
922
|
+
* @example
|
|
923
|
+
*
|
|
924
|
+
* Use `defineConfig` in `lynx.config.ts`:
|
|
925
|
+
*
|
|
926
|
+
* ```ts
|
|
927
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
928
|
+
*
|
|
929
|
+
* export default defineConfig(
|
|
930
|
+
* import('@lynx-js/react-rsbuild-plugin').then(({ pluginReactLynx }) => ({
|
|
931
|
+
* plugins: [pluginReactLynx()],
|
|
932
|
+
* })),
|
|
933
|
+
* );
|
|
934
|
+
* ```
|
|
935
|
+
*
|
|
936
|
+
* @public
|
|
937
|
+
*/
|
|
938
|
+
export declare function defineConfig(config: Promise<Config>): Promise<Config>;
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* The `defineConfig` method is a helper function used to get TypeScript intellisense.
|
|
942
|
+
*
|
|
943
|
+
* @param config - The function that returns a promise that resolves to a config of Rspeedy.
|
|
944
|
+
* @returns - The identical function as the input.
|
|
945
|
+
*
|
|
946
|
+
* @example
|
|
947
|
+
*
|
|
948
|
+
* Use `defineConfig` in `lynx.config.ts`:
|
|
949
|
+
*
|
|
950
|
+
* ```ts
|
|
951
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
952
|
+
* export default defineConfig(async () => {
|
|
953
|
+
* const foo = await bar()
|
|
954
|
+
* return {
|
|
955
|
+
* // autocompletion works here!
|
|
956
|
+
* }
|
|
957
|
+
* })
|
|
958
|
+
* ```
|
|
959
|
+
*
|
|
960
|
+
* @public
|
|
961
|
+
*/
|
|
962
|
+
export declare function defineConfig(config: () => Promise<Config>): () => Promise<Config>;
|
|
963
|
+
|
|
894
964
|
/**
|
|
895
965
|
* {@inheritdoc Config.dev}
|
|
896
966
|
* @public
|
package/dist/index.js
CHANGED
|
@@ -489,7 +489,7 @@ async function loadConfig(loadConfigOptions) {
|
|
|
489
489
|
const content = validate('default' in exports ? exports.default : exports, configPath);
|
|
490
490
|
return {
|
|
491
491
|
configPath,
|
|
492
|
-
content
|
|
492
|
+
content: 'function' == typeof content ? await content() : await content
|
|
493
493
|
};
|
|
494
494
|
} finally{
|
|
495
495
|
unregister();
|
package/dist/src_cli_build_ts.js
CHANGED
|
@@ -80,7 +80,7 @@ export const __webpack_modules__ = {
|
|
|
80
80
|
const content = validate('default' in exports ? exports.default : exports, configPath);
|
|
81
81
|
return {
|
|
82
82
|
configPath,
|
|
83
|
-
content
|
|
83
|
+
content: 'function' == typeof content ? await content() : await content
|
|
84
84
|
};
|
|
85
85
|
} finally{
|
|
86
86
|
unregister();
|
package/dist/src_cli_dev_ts.js
CHANGED
|
@@ -122,7 +122,7 @@ export const __webpack_modules__ = {
|
|
|
122
122
|
const content = validate('default' in exports ? exports.default : exports, configPath);
|
|
123
123
|
return {
|
|
124
124
|
configPath,
|
|
125
|
-
content
|
|
125
|
+
content: 'function' == typeof content ? await content() : await content
|
|
126
126
|
};
|
|
127
127
|
} finally{
|
|
128
128
|
unregister();
|
|
@@ -56,7 +56,7 @@ export const __webpack_modules__ = {
|
|
|
56
56
|
const content = validate('default' in exports ? exports.default : exports, configPath);
|
|
57
57
|
return {
|
|
58
58
|
configPath,
|
|
59
|
-
content
|
|
59
|
+
content: 'function' == typeof content ? await content() : await content
|
|
60
60
|
};
|
|
61
61
|
} finally{
|
|
62
62
|
unregister();
|
|
@@ -56,7 +56,7 @@ export const __webpack_modules__ = {
|
|
|
56
56
|
const content = validate('default' in exports ? exports.default : exports, configPath);
|
|
57
57
|
return {
|
|
58
58
|
configPath,
|
|
59
|
-
content
|
|
59
|
+
content: 'function' == typeof content ? await content() : await content
|
|
60
60
|
};
|
|
61
61
|
} finally{
|
|
62
62
|
unregister();
|
|
@@ -1490,9 +1490,9 @@ export const __webpack_modules__ = {
|
|
|
1490
1490
|
if (void 0 === value) return true;
|
|
1491
1491
|
return "string" == typeof value || "boolean" == typeof value;
|
|
1492
1492
|
});
|
|
1493
|
-
const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
1493
|
+
const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6646"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1494
1494
|
if ([
|
|
1495
|
-
"__@toStringTag@
|
|
1495
|
+
"__@toStringTag@6646"
|
|
1496
1496
|
].some((prop)=>key === prop)) return true;
|
|
1497
1497
|
const value = input[key];
|
|
1498
1498
|
if (void 0 === value) return true;
|
|
@@ -3097,14 +3097,14 @@ export const __webpack_modules__ = {
|
|
|
3097
3097
|
if (void 0 === value) return true;
|
|
3098
3098
|
return false;
|
|
3099
3099
|
})));
|
|
3100
|
-
const _io149 = (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@
|
|
3100
|
+
const _io149 = (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@6646"] && Object.keys(input).every((key)=>{
|
|
3101
3101
|
if ([
|
|
3102
3102
|
"BYTES_PER_ELEMENT",
|
|
3103
3103
|
"buffer",
|
|
3104
3104
|
"byteLength",
|
|
3105
3105
|
"byteOffset",
|
|
3106
3106
|
"length",
|
|
3107
|
-
"__@toStringTag@
|
|
3107
|
+
"__@toStringTag@6646"
|
|
3108
3108
|
].some((prop)=>key === prop)) return true;
|
|
3109
3109
|
const value = input[key];
|
|
3110
3110
|
if (void 0 === value) return true;
|
|
@@ -6356,9 +6356,9 @@ export const __webpack_modules__ = {
|
|
|
6356
6356
|
if (void 0 === value) return true;
|
|
6357
6357
|
return false;
|
|
6358
6358
|
}));
|
|
6359
|
-
const _io406 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
6359
|
+
const _io406 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6646"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6360
6360
|
if ([
|
|
6361
|
-
"__@toStringTag@
|
|
6361
|
+
"__@toStringTag@6646"
|
|
6362
6362
|
].some((prop)=>key === prop)) return true;
|
|
6363
6363
|
const value = input[key];
|
|
6364
6364
|
if (void 0 === value) return true;
|
|
@@ -6944,24 +6944,32 @@ export const __webpack_modules__ = {
|
|
|
6944
6944
|
if (void 0 === value) return true;
|
|
6945
6945
|
return false;
|
|
6946
6946
|
}));
|
|
6947
|
+
const _io459 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6646"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6948
|
+
if ([
|
|
6949
|
+
"__@toStringTag@6646"
|
|
6950
|
+
].some((prop)=>key === prop)) return true;
|
|
6951
|
+
const value = input[key];
|
|
6952
|
+
if (void 0 === value) return true;
|
|
6953
|
+
return false;
|
|
6954
|
+
}));
|
|
6947
6955
|
const _iu0 = (input, _exceptionable = true)=>(()=>{
|
|
6948
6956
|
if (_io121(input, false)) return _io121(input, _exceptionable);
|
|
6949
6957
|
if (_io120(input, false)) return _io120(input, _exceptionable);
|
|
6950
6958
|
return false;
|
|
6951
6959
|
})();
|
|
6952
6960
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
6953
|
-
if (void 0 !== input["__@toStringTag@
|
|
6961
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _io149(input, _exceptionable);
|
|
6954
6962
|
if (void 0 !== input.pem) return _io150(input, _exceptionable);
|
|
6955
6963
|
return false;
|
|
6956
6964
|
})();
|
|
6957
6965
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
6958
|
-
if (void 0 !== input["__@toStringTag@
|
|
6966
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _io149(input, _exceptionable);
|
|
6959
6967
|
if (void 0 !== input.buf) return _io151(input, _exceptionable);
|
|
6960
6968
|
return false;
|
|
6961
6969
|
})();
|
|
6962
6970
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
6963
6971
|
if (void 0 !== input.name) return _io405(input, _exceptionable);
|
|
6964
|
-
if (void 0 !== input["__@toStringTag@
|
|
6972
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _io406(input, _exceptionable);
|
|
6965
6973
|
return false;
|
|
6966
6974
|
})();
|
|
6967
6975
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -7033,6 +7041,10 @@ export const __webpack_modules__ = {
|
|
|
7033
7041
|
if ("custom" === input.strategy) return _io417(input, _exceptionable);
|
|
7034
7042
|
return _io415(input, _exceptionable);
|
|
7035
7043
|
})();
|
|
7044
|
+
const _iu18 = (input, _exceptionable = true)=>(()=>{
|
|
7045
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _io459(input, _exceptionable);
|
|
7046
|
+
return _io0(input, _exceptionable);
|
|
7047
|
+
})();
|
|
7036
7048
|
const _ia0 = (input, _exceptionable = true)=>input.every((elem, _index367)=>null != elem && ("function" == typeof elem || "string" == typeof elem || elem instanceof RegExp || Array.isArray(elem) && (_ia0(elem, _exceptionable) || false) || "object" == typeof elem && null !== elem && false === Array.isArray(elem) && _io174(elem, _exceptionable)));
|
|
7037
7049
|
const _ia1 = (input, _exceptionable = true)=>input.every((elem, _index368)=>null != elem && ("function" == typeof elem || "string" == typeof elem || elem instanceof RegExp || Array.isArray(elem) && (_ia1(elem, _exceptionable) || false) || "object" == typeof elem && null !== elem && false === Array.isArray(elem) && _io225(elem, _exceptionable)));
|
|
7038
7050
|
const _ia2 = (input, _exceptionable = true)=>input.every((elem, _index369)=>null != elem && ("function" == typeof elem || "string" == typeof elem || elem instanceof RegExp || Array.isArray(elem) && (_ia2(elem, _exceptionable) || false) || "object" == typeof elem && null !== elem && false === Array.isArray(elem) && _io227(elem, _exceptionable)));
|
|
@@ -9546,14 +9558,14 @@ export const __webpack_modules__ = {
|
|
|
9546
9558
|
}).every((flag)=>flag)
|
|
9547
9559
|
].every((flag)=>flag);
|
|
9548
9560
|
const _vo41 = (input, _path, _exceptionable = true)=>[
|
|
9549
|
-
"string" == typeof input["__@toStringTag@
|
|
9550
|
-
path: _path + "[\"__@toStringTag@
|
|
9561
|
+
"string" == typeof input["__@toStringTag@6646"] || _report(_exceptionable, {
|
|
9562
|
+
path: _path + "[\"__@toStringTag@6646\"]",
|
|
9551
9563
|
expected: "string",
|
|
9552
|
-
value: input["__@toStringTag@
|
|
9564
|
+
value: input["__@toStringTag@6646"]
|
|
9553
9565
|
}),
|
|
9554
9566
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
9555
9567
|
if ([
|
|
9556
|
-
"__@toStringTag@
|
|
9568
|
+
"__@toStringTag@6646"
|
|
9557
9569
|
].some((prop)=>key === prop)) return true;
|
|
9558
9570
|
const value = input[key];
|
|
9559
9571
|
if (void 0 === value) return true;
|
|
@@ -18541,10 +18553,10 @@ export const __webpack_modules__ = {
|
|
|
18541
18553
|
expected: "number",
|
|
18542
18554
|
value: input.length
|
|
18543
18555
|
}),
|
|
18544
|
-
"Uint8Array" === input["__@toStringTag@
|
|
18545
|
-
path: _path + "[\"__@toStringTag@
|
|
18556
|
+
"Uint8Array" === input["__@toStringTag@6646"] || _report(_exceptionable, {
|
|
18557
|
+
path: _path + "[\"__@toStringTag@6646\"]",
|
|
18546
18558
|
expected: "\"Uint8Array\"",
|
|
18547
|
-
value: input["__@toStringTag@
|
|
18559
|
+
value: input["__@toStringTag@6646"]
|
|
18548
18560
|
}),
|
|
18549
18561
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
18550
18562
|
if ([
|
|
@@ -18553,7 +18565,7 @@ export const __webpack_modules__ = {
|
|
|
18553
18565
|
"byteLength",
|
|
18554
18566
|
"byteOffset",
|
|
18555
18567
|
"length",
|
|
18556
|
-
"__@toStringTag@
|
|
18568
|
+
"__@toStringTag@6646"
|
|
18557
18569
|
].some((prop)=>key === prop)) return true;
|
|
18558
18570
|
const value = input[key];
|
|
18559
18571
|
if (void 0 === value) return true;
|
|
@@ -36606,14 +36618,14 @@ export const __webpack_modules__ = {
|
|
|
36606
36618
|
}).every((flag)=>flag)
|
|
36607
36619
|
].every((flag)=>flag);
|
|
36608
36620
|
const _vo406 = (input, _path, _exceptionable = true)=>[
|
|
36609
|
-
"string" == typeof input["__@toStringTag@
|
|
36610
|
-
path: _path + "[\"__@toStringTag@
|
|
36621
|
+
"string" == typeof input["__@toStringTag@6646"] || _report(_exceptionable, {
|
|
36622
|
+
path: _path + "[\"__@toStringTag@6646\"]",
|
|
36611
36623
|
expected: "string",
|
|
36612
|
-
value: input["__@toStringTag@
|
|
36624
|
+
value: input["__@toStringTag@6646"]
|
|
36613
36625
|
}),
|
|
36614
36626
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
36615
36627
|
if ([
|
|
36616
|
-
"__@toStringTag@
|
|
36628
|
+
"__@toStringTag@6646"
|
|
36617
36629
|
].some((prop)=>key === prop)) return true;
|
|
36618
36630
|
const value = input[key];
|
|
36619
36631
|
if (void 0 === value) return true;
|
|
@@ -39625,6 +39637,30 @@ export const __webpack_modules__ = {
|
|
|
39625
39637
|
});
|
|
39626
39638
|
}).every((flag)=>flag)
|
|
39627
39639
|
].every((flag)=>flag);
|
|
39640
|
+
const _vo459 = (input, _path, _exceptionable = true)=>[
|
|
39641
|
+
"string" == typeof input["__@toStringTag@6646"] || _report(_exceptionable, {
|
|
39642
|
+
path: _path + "[\"__@toStringTag@6646\"]",
|
|
39643
|
+
expected: "string",
|
|
39644
|
+
value: input["__@toStringTag@6646"]
|
|
39645
|
+
}),
|
|
39646
|
+
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
39647
|
+
if ([
|
|
39648
|
+
"__@toStringTag@6646"
|
|
39649
|
+
].some((prop)=>key === prop)) return true;
|
|
39650
|
+
const value = input[key];
|
|
39651
|
+
if (void 0 === value) return true;
|
|
39652
|
+
return _report(_exceptionable, {
|
|
39653
|
+
path: _path + typia_lib_internal_accessExpressionAsString_js__WEBPACK_IMPORTED_MODULE_0__._accessExpressionAsString(key),
|
|
39654
|
+
expected: "undefined",
|
|
39655
|
+
value: value,
|
|
39656
|
+
description: [
|
|
39657
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
39658
|
+
"",
|
|
39659
|
+
"Please remove the property next time."
|
|
39660
|
+
].join("\n")
|
|
39661
|
+
});
|
|
39662
|
+
}).every((flag)=>flag)
|
|
39663
|
+
].every((flag)=>flag);
|
|
39628
39664
|
const _vu0 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39629
39665
|
if (_vo121(input, _path, false)) return _vo121(input, _path, _exceptionable);
|
|
39630
39666
|
if (_vo120(input, _path, false)) return _vo120(input, _path, _exceptionable);
|
|
@@ -39635,7 +39671,7 @@ export const __webpack_modules__ = {
|
|
|
39635
39671
|
});
|
|
39636
39672
|
})();
|
|
39637
39673
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39638
|
-
if (void 0 !== input["__@toStringTag@
|
|
39674
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _vo149(input, _path, _exceptionable);
|
|
39639
39675
|
if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
|
|
39640
39676
|
return _report(_exceptionable, {
|
|
39641
39677
|
path: _path,
|
|
@@ -39644,7 +39680,7 @@ export const __webpack_modules__ = {
|
|
|
39644
39680
|
});
|
|
39645
39681
|
})();
|
|
39646
39682
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39647
|
-
if (void 0 !== input["__@toStringTag@
|
|
39683
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _vo149(input, _path, _exceptionable);
|
|
39648
39684
|
if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
|
|
39649
39685
|
return _report(_exceptionable, {
|
|
39650
39686
|
path: _path,
|
|
@@ -39654,7 +39690,7 @@ export const __webpack_modules__ = {
|
|
|
39654
39690
|
})();
|
|
39655
39691
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39656
39692
|
if (void 0 !== input.name) return _vo405(input, _path, _exceptionable);
|
|
39657
|
-
if (void 0 !== input["__@toStringTag@
|
|
39693
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _vo406(input, _path, _exceptionable);
|
|
39658
39694
|
return _report(_exceptionable, {
|
|
39659
39695
|
path: _path,
|
|
39660
39696
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
|
@@ -39758,6 +39794,10 @@ export const __webpack_modules__ = {
|
|
|
39758
39794
|
if ("custom" === input.strategy) return _vo417(input, _path, _exceptionable);
|
|
39759
39795
|
return _vo415(input, _path, _exceptionable);
|
|
39760
39796
|
})();
|
|
39797
|
+
const _vu18 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39798
|
+
if (void 0 !== input["__@toStringTag@6646"]) return _vo459(input, _path, _exceptionable);
|
|
39799
|
+
return _vo0(input, _path, _exceptionable);
|
|
39800
|
+
})();
|
|
39761
39801
|
const _va0 = (input, _path, _exceptionable = true)=>input.map((elem, _index738)=>(null !== elem || _report(_exceptionable, {
|
|
39762
39802
|
path: _path + "[" + _index738 + "]",
|
|
39763
39803
|
expected: "(RegExp | RuleSetConditions | RuleSetLogicalConditions | string)",
|
|
@@ -39851,22 +39891,30 @@ export const __webpack_modules__ = {
|
|
|
39851
39891
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | RsbuildPlugins | LooseRsbuildPlugin | Falsy | false | null | undefined)",
|
|
39852
39892
|
value: elem
|
|
39853
39893
|
})).every((flag)=>flag);
|
|
39854
|
-
const __is = (input, _exceptionable = true)=>"object" == typeof input && null !== input && false === Array.isArray(input) &&
|
|
39894
|
+
const __is = (input, _exceptionable = true)=>null != input && ("function" == typeof input || "object" == typeof input && null !== input && false === Array.isArray(input) && _iu18(input, true));
|
|
39855
39895
|
let errors;
|
|
39856
39896
|
let _report;
|
|
39857
39897
|
return typia_lib_internal_createStandardSchema_js__WEBPACK_IMPORTED_MODULE_1__._createStandardSchema((input)=>{
|
|
39858
39898
|
if (false === __is(input)) {
|
|
39859
39899
|
errors = [];
|
|
39860
39900
|
_report = typia_lib_internal_validateReport_js__WEBPACK_IMPORTED_MODULE_2__._validateReport(errors);
|
|
39861
|
-
((input, _path, _exceptionable = true)=>(
|
|
39901
|
+
((input, _path, _exceptionable = true)=>(null !== input || _report(true, {
|
|
39902
|
+
path: _path + "",
|
|
39903
|
+
expected: "(Config | Config.o7)",
|
|
39904
|
+
value: input
|
|
39905
|
+
})) && (void 0 !== input || _report(true, {
|
|
39906
|
+
path: _path + "",
|
|
39907
|
+
expected: "(Config | Config.o7)",
|
|
39908
|
+
value: input
|
|
39909
|
+
})) && ("function" == typeof input || ("object" == typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
39862
39910
|
path: _path + "",
|
|
39863
|
-
expected: "Config",
|
|
39911
|
+
expected: "(Config | Config.o7)",
|
|
39864
39912
|
value: input
|
|
39865
|
-
})) &&
|
|
39913
|
+
})) && _vu18(input, _path + "", true) || _report(true, {
|
|
39866
39914
|
path: _path + "",
|
|
39867
|
-
expected: "Config",
|
|
39915
|
+
expected: "(Config | Config.o7)",
|
|
39868
39916
|
value: input
|
|
39869
|
-
}))(input, "$input", true);
|
|
39917
|
+
})))(input, "$input", true);
|
|
39870
39918
|
const success = 0 === errors.length;
|
|
39871
39919
|
return success ? {
|
|
39872
39920
|
success,
|
|
@@ -19,11 +19,11 @@ export const __webpack_modules__ = {
|
|
|
19
19
|
config,
|
|
20
20
|
debug: _debug_js__WEBPACK_IMPORTED_MODULE_1__.fF,
|
|
21
21
|
async exit (code) {
|
|
22
|
-
const { exit } = await
|
|
22
|
+
const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
|
|
23
23
|
return exit(code);
|
|
24
24
|
},
|
|
25
25
|
logger: _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger,
|
|
26
|
-
version: _version_js__WEBPACK_IMPORTED_MODULE_2__.
|
|
26
|
+
version: _version_js__WEBPACK_IMPORTED_MODULE_2__.version
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -7,10 +7,8 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginRsdoctor: ()=>pluginRsdoctor
|
|
9
9
|
});
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
13
|
-
}
|
|
10
|
+
var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
|
|
11
|
+
var _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/is-ci.ts");
|
|
14
12
|
function pluginRsdoctor(options) {
|
|
15
13
|
return {
|
|
16
14
|
name: 'lynx:rsbuild:rsdoctor',
|
|
@@ -27,7 +25,7 @@ export const __webpack_modules__ = {
|
|
|
27
25
|
if (registered) continue;
|
|
28
26
|
config.plugins ??= [];
|
|
29
27
|
const defaultOptions = {
|
|
30
|
-
disableClientServer:
|
|
28
|
+
disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.y)(),
|
|
31
29
|
supports: {
|
|
32
30
|
banner: true
|
|
33
31
|
},
|
|
@@ -42,12 +40,20 @@ export const __webpack_modules__ = {
|
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
|
-
config.plugins.push(new RsdoctorRspackPlugin((0,
|
|
43
|
+
config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
|
|
46
44
|
}
|
|
47
|
-
|
|
45
|
+
_rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
|
|
48
46
|
});
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
49
|
}
|
|
50
|
+
},
|
|
51
|
+
"./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
52
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
53
|
+
y: ()=>isCI
|
|
54
|
+
});
|
|
55
|
+
function isCI() {
|
|
56
|
+
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy-canary",
|
|
3
|
-
"version": "0.10.8-canary-
|
|
3
|
+
"version": "0.10.8-canary-20250826-bc7f532b",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"README.md"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.1-canary-
|
|
50
|
-
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.1-canary-
|
|
49
|
+
"@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.1-canary-20250826-bc7f532b",
|
|
50
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.1-canary-20250826-bc7f532b",
|
|
51
51
|
"@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
|
|
52
52
|
"@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
|
|
53
53
|
"@rsbuild/core": "1.4.15",
|