@lynx-js/rspeedy-canary 0.10.7-canary-20250815-405a9170 → 0.10.8-canary-20250820-09294957
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 +7 -1
- package/dist/index.js +1 -1
- package/dist/src_cli_commands_ts.js +1 -1
- package/dist/src_config_validate_ts.js +24 -24
- package/dist/src_plugins_api_plugin_ts.js +0 -3
- package/dist/src_plugins_dev_plugin_ts.js +11 -3
- package/dist/src_plugins_index_ts.js +1 -10
- package/dist/src_version_ts.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.10.
|
|
3
|
+
## 0.10.8-canary-20250820072656-09294957c3f45cb5c8f4f5c9f25dd7de2e3ee51d
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix missing `publicPath` using when `rspeedy dev --mode production`. ([#1310](https://github.com/lynx-family/lynx-stack/pull/1310))
|
|
8
|
+
|
|
9
|
+
## 0.10.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var __webpack_modules__ = {
|
|
|
112
112
|
});
|
|
113
113
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
114
114
|
var package_namespaceObject = {
|
|
115
|
-
i8: "0.10.
|
|
115
|
+
i8: "0.10.7"
|
|
116
116
|
};
|
|
117
117
|
const version = package_namespaceObject.i8;
|
|
118
118
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -40,7 +40,7 @@ export const __webpack_modules__ = {
|
|
|
40
40
|
});
|
|
41
41
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
42
42
|
var package_namespaceObject = {
|
|
43
|
-
i8: "0.10.
|
|
43
|
+
i8: "0.10.7"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -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@6638"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1494
1494
|
if ([
|
|
1495
|
-
"__@toStringTag@
|
|
1495
|
+
"__@toStringTag@6638"
|
|
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@6638"] && 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@6638"
|
|
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@6638"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6360
6360
|
if ([
|
|
6361
|
-
"__@toStringTag@
|
|
6361
|
+
"__@toStringTag@6638"
|
|
6362
6362
|
].some((prop)=>key === prop)) return true;
|
|
6363
6363
|
const value = input[key];
|
|
6364
6364
|
if (void 0 === value) return true;
|
|
@@ -6951,18 +6951,18 @@ export const __webpack_modules__ = {
|
|
|
6951
6951
|
return false;
|
|
6952
6952
|
})();
|
|
6953
6953
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
6954
|
-
if (void 0 !== input["__@toStringTag@
|
|
6954
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _io149(input, _exceptionable);
|
|
6955
6955
|
if (void 0 !== input.pem) return _io150(input, _exceptionable);
|
|
6956
6956
|
return false;
|
|
6957
6957
|
})();
|
|
6958
6958
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
6959
|
-
if (void 0 !== input["__@toStringTag@
|
|
6959
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _io149(input, _exceptionable);
|
|
6960
6960
|
if (void 0 !== input.buf) return _io151(input, _exceptionable);
|
|
6961
6961
|
return false;
|
|
6962
6962
|
})();
|
|
6963
6963
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
6964
6964
|
if (void 0 !== input.name) return _io405(input, _exceptionable);
|
|
6965
|
-
if (void 0 !== input["__@toStringTag@
|
|
6965
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _io406(input, _exceptionable);
|
|
6966
6966
|
return false;
|
|
6967
6967
|
})();
|
|
6968
6968
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -9547,14 +9547,14 @@ export const __webpack_modules__ = {
|
|
|
9547
9547
|
}).every((flag)=>flag)
|
|
9548
9548
|
].every((flag)=>flag);
|
|
9549
9549
|
const _vo41 = (input, _path, _exceptionable = true)=>[
|
|
9550
|
-
"string" == typeof input["__@toStringTag@
|
|
9551
|
-
path: _path + "[\"__@toStringTag@
|
|
9550
|
+
"string" == typeof input["__@toStringTag@6638"] || _report(_exceptionable, {
|
|
9551
|
+
path: _path + "[\"__@toStringTag@6638\"]",
|
|
9552
9552
|
expected: "string",
|
|
9553
|
-
value: input["__@toStringTag@
|
|
9553
|
+
value: input["__@toStringTag@6638"]
|
|
9554
9554
|
}),
|
|
9555
9555
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
9556
9556
|
if ([
|
|
9557
|
-
"__@toStringTag@
|
|
9557
|
+
"__@toStringTag@6638"
|
|
9558
9558
|
].some((prop)=>key === prop)) return true;
|
|
9559
9559
|
const value = input[key];
|
|
9560
9560
|
if (void 0 === value) return true;
|
|
@@ -18542,10 +18542,10 @@ export const __webpack_modules__ = {
|
|
|
18542
18542
|
expected: "number",
|
|
18543
18543
|
value: input.length
|
|
18544
18544
|
}),
|
|
18545
|
-
"Uint8Array" === input["__@toStringTag@
|
|
18546
|
-
path: _path + "[\"__@toStringTag@
|
|
18545
|
+
"Uint8Array" === input["__@toStringTag@6638"] || _report(_exceptionable, {
|
|
18546
|
+
path: _path + "[\"__@toStringTag@6638\"]",
|
|
18547
18547
|
expected: "\"Uint8Array\"",
|
|
18548
|
-
value: input["__@toStringTag@
|
|
18548
|
+
value: input["__@toStringTag@6638"]
|
|
18549
18549
|
}),
|
|
18550
18550
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
18551
18551
|
if ([
|
|
@@ -18554,7 +18554,7 @@ export const __webpack_modules__ = {
|
|
|
18554
18554
|
"byteLength",
|
|
18555
18555
|
"byteOffset",
|
|
18556
18556
|
"length",
|
|
18557
|
-
"__@toStringTag@
|
|
18557
|
+
"__@toStringTag@6638"
|
|
18558
18558
|
].some((prop)=>key === prop)) return true;
|
|
18559
18559
|
const value = input[key];
|
|
18560
18560
|
if (void 0 === value) return true;
|
|
@@ -36607,14 +36607,14 @@ export const __webpack_modules__ = {
|
|
|
36607
36607
|
}).every((flag)=>flag)
|
|
36608
36608
|
].every((flag)=>flag);
|
|
36609
36609
|
const _vo406 = (input, _path, _exceptionable = true)=>[
|
|
36610
|
-
"string" == typeof input["__@toStringTag@
|
|
36611
|
-
path: _path + "[\"__@toStringTag@
|
|
36610
|
+
"string" == typeof input["__@toStringTag@6638"] || _report(_exceptionable, {
|
|
36611
|
+
path: _path + "[\"__@toStringTag@6638\"]",
|
|
36612
36612
|
expected: "string",
|
|
36613
|
-
value: input["__@toStringTag@
|
|
36613
|
+
value: input["__@toStringTag@6638"]
|
|
36614
36614
|
}),
|
|
36615
36615
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
36616
36616
|
if ([
|
|
36617
|
-
"__@toStringTag@
|
|
36617
|
+
"__@toStringTag@6638"
|
|
36618
36618
|
].some((prop)=>key === prop)) return true;
|
|
36619
36619
|
const value = input[key];
|
|
36620
36620
|
if (void 0 === value) return true;
|
|
@@ -39638,7 +39638,7 @@ export const __webpack_modules__ = {
|
|
|
39638
39638
|
});
|
|
39639
39639
|
})();
|
|
39640
39640
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39641
|
-
if (void 0 !== input["__@toStringTag@
|
|
39641
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _vo149(input, _path, _exceptionable);
|
|
39642
39642
|
if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
|
|
39643
39643
|
return _report(_exceptionable, {
|
|
39644
39644
|
path: _path,
|
|
@@ -39647,7 +39647,7 @@ export const __webpack_modules__ = {
|
|
|
39647
39647
|
});
|
|
39648
39648
|
})();
|
|
39649
39649
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39650
|
-
if (void 0 !== input["__@toStringTag@
|
|
39650
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _vo149(input, _path, _exceptionable);
|
|
39651
39651
|
if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
|
|
39652
39652
|
return _report(_exceptionable, {
|
|
39653
39653
|
path: _path,
|
|
@@ -39657,7 +39657,7 @@ export const __webpack_modules__ = {
|
|
|
39657
39657
|
})();
|
|
39658
39658
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39659
39659
|
if (void 0 !== input.name) return _vo405(input, _path, _exceptionable);
|
|
39660
|
-
if (void 0 !== input["__@toStringTag@
|
|
39660
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _vo406(input, _path, _exceptionable);
|
|
39661
39661
|
return _report(_exceptionable, {
|
|
39662
39662
|
path: _path,
|
|
39663
39663
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
|
@@ -27,6 +27,9 @@ export const __webpack_modules__ = {
|
|
|
27
27
|
function pluginDev(options, server) {
|
|
28
28
|
return {
|
|
29
29
|
name: 'lynx:rsbuild:dev',
|
|
30
|
+
apply (config, { action }) {
|
|
31
|
+
return 'dev' === action || 'development' === config.mode;
|
|
32
|
+
},
|
|
30
33
|
async setup (api) {
|
|
31
34
|
const hostname = server?.host ?? await findIp('v4');
|
|
32
35
|
let assetPrefix = options?.assetPrefix;
|
|
@@ -58,13 +61,18 @@ export const __webpack_modules__ = {
|
|
|
58
61
|
dev: {
|
|
59
62
|
assetPrefix,
|
|
60
63
|
client: {
|
|
61
|
-
host: hostname
|
|
64
|
+
host: hostname,
|
|
65
|
+
port: '<port>'
|
|
62
66
|
}
|
|
67
|
+
},
|
|
68
|
+
output: {
|
|
69
|
+
assetPrefix
|
|
63
70
|
}
|
|
64
71
|
}));
|
|
65
72
|
const require = (0, external_node_module_.createRequire)(import.meta.url);
|
|
66
|
-
api.modifyBundlerChain((chain, {
|
|
67
|
-
|
|
73
|
+
api.modifyBundlerChain((chain, { isDev, environment })=>{
|
|
74
|
+
const { action } = api.context;
|
|
75
|
+
if ('dev' !== action && !isDev) return;
|
|
68
76
|
const rsbuildPath = require.resolve('@rsbuild/core');
|
|
69
77
|
const rspeedyDir = external_node_path_["default"].dirname(require.resolve('@lynx-js/rspeedy/package.json'));
|
|
70
78
|
const searchParams = new URLSearchParams({
|
|
@@ -18,16 +18,11 @@ export const __webpack_modules__ = {
|
|
|
18
18
|
]);
|
|
19
19
|
rsbuildInstance.addPlugins(await Promise.all(debugPlugins));
|
|
20
20
|
}
|
|
21
|
-
async function applyDefaultDevPlugins(rsbuildInstance, config) {
|
|
22
|
-
const devPlugins = Object.freeze([
|
|
23
|
-
__webpack_require__.e("src_plugins_dev_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/dev.plugin.ts")).then(({ pluginDev })=>pluginDev(config.dev, config.server))
|
|
24
|
-
]);
|
|
25
|
-
rsbuildInstance.addPlugins(await Promise.all(devPlugins));
|
|
26
|
-
}
|
|
27
21
|
async function applyDefaultPlugins(rsbuildInstance, config) {
|
|
28
22
|
const defaultPlugins = Object.freeze([
|
|
29
23
|
__webpack_require__.e("src_plugins_api_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/api.plugin.ts")).then(({ pluginAPI })=>pluginAPI(config)),
|
|
30
24
|
__webpack_require__.e("src_plugins_chunkLoading_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/chunkLoading.plugin.ts")).then(({ pluginChunkLoading })=>pluginChunkLoading()),
|
|
25
|
+
__webpack_require__.e("src_plugins_dev_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/dev.plugin.ts")).then(({ pluginDev })=>pluginDev(config.dev, config.server)),
|
|
31
26
|
__webpack_require__.e("src_plugins_minify_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/minify.plugin.ts")).then(({ pluginMinify })=>pluginMinify(config.output?.minify)),
|
|
32
27
|
__webpack_require__.e("src_plugins_optimization_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/optimization.plugin.ts")).then(({ pluginOptimization })=>pluginOptimization()),
|
|
33
28
|
__webpack_require__.e("src_plugins_output_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/output.plugin.ts")).then(({ pluginOutput })=>pluginOutput(config.output)),
|
|
@@ -42,10 +37,6 @@ export const __webpack_modules__ = {
|
|
|
42
37
|
rsbuildInstance.addPlugins(plugins);
|
|
43
38
|
})
|
|
44
39
|
];
|
|
45
|
-
if ('development' === config.mode) {
|
|
46
|
-
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.fF)('apply Rspeedy default development plugins');
|
|
47
|
-
promises.push(applyDefaultDevPlugins(rsbuildInstance, config));
|
|
48
|
-
}
|
|
49
40
|
if ((0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.L1)()) {
|
|
50
41
|
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.fF)('apply Rspeedy default debug plugins');
|
|
51
42
|
promises.push(applyDebugPlugins(rsbuildInstance, config));
|
package/dist/src_version_ts.js
CHANGED
|
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
|
|
|
10
10
|
});
|
|
11
11
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
12
12
|
var package_namespaceObject = {
|
|
13
|
-
i8: "0.10.
|
|
13
|
+
i8: "0.10.7"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy-canary",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8-canary-20250820-09294957",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"typia": "9.7.1",
|
|
71
71
|
"typia-rspack-plugin": "2.2.1",
|
|
72
72
|
"vitest": "^3.2.4",
|
|
73
|
-
"webpack": "^5.101.
|
|
73
|
+
"webpack": "^5.101.3",
|
|
74
74
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|