@lynx-js/rspeedy-canary 0.10.9-canary-20250826-d65ef500 → 0.10.9-canary-20250826-1952fc15
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 -1
- package/dist/cli/main.js +12 -73
- package/dist/events-fs-fs_promises-os-path-stream.js +30 -0
- package/dist/index.js +19 -39
- package/dist/node_child_process-node_events-node_fs-node_path.js +22 -0
- package/dist/src_cli_build_ts.js +35 -23
- package/dist/src_cli_commands_ts.js +3 -2
- package/dist/src_cli_dev_ts.js +33 -21
- package/dist/src_cli_exit_ts.js +12 -11
- package/dist/src_cli_inspect_ts.js +25 -16
- package/dist/src_cli_preview_ts.js +25 -16
- package/dist/src_config_validate_ts.js +86 -49
- package/dist/src_plugins_api_plugin_ts.js +2 -1
- package/dist/src_plugins_chunkLoading_plugin_ts.js +6 -5
- package/dist/src_plugins_dev_plugin_ts.js +4 -3
- package/dist/src_plugins_emitOnErrors_plugin_ts.js +1 -0
- package/dist/src_plugins_index_ts.js +3 -2
- package/dist/src_plugins_inspect_plugin_ts.js +16 -15
- package/dist/src_plugins_minify_plugin_ts.js +3 -2
- package/dist/src_plugins_optimization_plugin_ts.js +1 -0
- package/dist/src_plugins_output_plugin_ts.js +3 -2
- package/dist/src_plugins_resolve_plugin_ts.js +1 -0
- package/dist/src_plugins_rsdoctor_plugin_ts.js +3 -2
- package/dist/src_plugins_sourcemap_plugin_ts.js +1 -0
- package/dist/src_plugins_swc_plugin_ts.js +3 -2
- package/dist/src_plugins_target_plugin_ts.js +6 -5
- package/dist/src_version_ts.js +3 -2
- package/dist/vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js.js +1 -0
- package/dist/vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js +1 -0
- package/dist/vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js.js +1 -0
- package/dist/vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc.js +1 -0
- package/package.json +2 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
|
+
export const __webpack_id__ = "src_plugins_inspect_plugin_ts";
|
|
1
3
|
export const __webpack_ids__ = [
|
|
2
4
|
"src_plugins_inspect_plugin_ts"
|
|
3
5
|
];
|
|
4
6
|
export const __webpack_modules__ = {
|
|
5
7
|
"./src/config/output/dist-path.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
|
-
|
|
9
|
+
z: ()=>DEFAULT_DIST_PATH_INTERMEDIATE
|
|
8
10
|
});
|
|
9
11
|
const DEFAULT_DIST_PATH_INTERMEDIATE = '.rspeedy';
|
|
10
12
|
},
|
|
@@ -14,35 +16,34 @@ export const __webpack_modules__ = {
|
|
|
14
16
|
inspectRspeedyConfig: ()=>inspectRspeedyConfig,
|
|
15
17
|
pluginInspect: ()=>pluginInspect
|
|
16
18
|
});
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var _debug_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./src/debug.ts");
|
|
19
|
+
var external_node_path_ = __webpack_require__("node:path");
|
|
20
|
+
var core_ = __webpack_require__("@rsbuild/core");
|
|
21
|
+
var dist = __webpack_require__("../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js");
|
|
22
|
+
var picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
23
|
+
var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
|
|
24
|
+
var dist_path = __webpack_require__("./src/config/output/dist-path.ts");
|
|
25
|
+
var debug = __webpack_require__("./src/debug.ts");
|
|
25
26
|
function pluginInspect(config) {
|
|
26
27
|
return {
|
|
27
28
|
name: 'lynx:rsbuild:inspect',
|
|
28
29
|
setup (api) {
|
|
29
30
|
api.onBeforeBuild(async ()=>{
|
|
30
|
-
await inspectRspeedyConfig(config,
|
|
31
|
+
await inspectRspeedyConfig(config, external_node_path_["default"].join(api.context.distPath, dist_path.z, 'rspeedy.config.js'), false);
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
async function inspectRspeedyConfig(config, path, verbose) {
|
|
36
|
-
const stringifiedConfig = (0,
|
|
37
|
+
const stringifiedConfig = (0, dist.stringify)(config, (value, _, stringify)=>{
|
|
37
38
|
if ('function' == typeof value && !verbose && value.toString().length > 100) return "function () { /* omitted long function */ }";
|
|
38
39
|
return stringify(value);
|
|
39
40
|
}, 2);
|
|
40
|
-
if (!stringifiedConfig) return void (0,
|
|
41
|
-
await
|
|
41
|
+
if (!stringifiedConfig) return void (0, debug.Yz)('No Rspeedy config found, skip inspect config.');
|
|
42
|
+
await mkdir((0, external_node_path_.dirname)(path), {
|
|
42
43
|
recursive: true
|
|
43
44
|
});
|
|
44
|
-
await
|
|
45
|
-
|
|
45
|
+
await writeFile(path, `export default ${stringifiedConfig}`);
|
|
46
|
+
core_.logger.success(`Inspect Rspeedy config succeed, open following files to view the content: \n\n - ${picocolors_default().bold(picocolors_default().yellow('Rspeedy'))}: ${picocolors_default().underline(path)}\n`);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const __webpack_id__ = "src_plugins_minify_plugin_ts";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"src_plugins_minify_plugin_ts"
|
|
3
4
|
];
|
|
@@ -57,7 +58,7 @@ export const __webpack_modules__ = {
|
|
|
57
58
|
setup (api) {
|
|
58
59
|
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>{
|
|
59
60
|
if (false === options) {
|
|
60
|
-
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.
|
|
61
|
+
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.Yz)("minification disabled");
|
|
61
62
|
return mergeRsbuildConfig(config, {
|
|
62
63
|
output: {
|
|
63
64
|
minify: false
|
|
@@ -69,7 +70,7 @@ export const __webpack_modules__ = {
|
|
|
69
70
|
defaultConfig
|
|
70
71
|
];
|
|
71
72
|
if (true !== options && void 0 !== options) {
|
|
72
|
-
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.
|
|
73
|
+
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.Yz)("merging minification options");
|
|
73
74
|
configs.push({
|
|
74
75
|
output: {
|
|
75
76
|
minify: options
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export const __webpack_id__ = "src_plugins_output_plugin_ts";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"src_plugins_output_plugin_ts"
|
|
3
4
|
];
|
|
4
5
|
export const __webpack_modules__ = {
|
|
5
6
|
"./src/config/output/dist-path.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
|
-
|
|
8
|
+
z: ()=>DEFAULT_DIST_PATH_INTERMEDIATE
|
|
8
9
|
});
|
|
9
10
|
const DEFAULT_DIST_PATH_INTERMEDIATE = '.rspeedy';
|
|
10
11
|
},
|
|
@@ -18,7 +19,7 @@ export const __webpack_modules__ = {
|
|
|
18
19
|
css: '[name]/[name].css'
|
|
19
20
|
});
|
|
20
21
|
const defaultDistPathOptions = Object.freeze({
|
|
21
|
-
css: _config_output_dist_path_js__WEBPACK_IMPORTED_MODULE_0__.
|
|
22
|
+
css: _config_output_dist_path_js__WEBPACK_IMPORTED_MODULE_0__.z
|
|
22
23
|
});
|
|
23
24
|
function pluginOutput(options) {
|
|
24
25
|
return {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const __webpack_id__ = "src_plugins_rsdoctor_plugin_ts";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"src_plugins_rsdoctor_plugin_ts"
|
|
3
4
|
];
|
|
@@ -25,7 +26,7 @@ export const __webpack_modules__ = {
|
|
|
25
26
|
if (registered) continue;
|
|
26
27
|
config.plugins ??= [];
|
|
27
28
|
const defaultOptions = {
|
|
28
|
-
disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.
|
|
29
|
+
disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.J)(),
|
|
29
30
|
supports: {
|
|
30
31
|
banner: true
|
|
31
32
|
},
|
|
@@ -50,7 +51,7 @@ export const __webpack_modules__ = {
|
|
|
50
51
|
},
|
|
51
52
|
"./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
52
53
|
__webpack_require__.d(__webpack_exports__, {
|
|
53
|
-
|
|
54
|
+
J: ()=>isCI
|
|
54
55
|
});
|
|
55
56
|
function isCI() {
|
|
56
57
|
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const __webpack_id__ = "src_plugins_swc_plugin_ts";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"src_plugins_swc_plugin_ts"
|
|
3
4
|
];
|
|
@@ -19,7 +20,7 @@ export const __webpack_modules__ = {
|
|
|
19
20
|
swc (config) {
|
|
20
21
|
delete config.env;
|
|
21
22
|
config.jsc ??= {};
|
|
22
|
-
config.jsc.target = (0, _utils_getESVersionTarget_js__WEBPACK_IMPORTED_MODULE_0__.
|
|
23
|
+
config.jsc.target = (0, _utils_getESVersionTarget_js__WEBPACK_IMPORTED_MODULE_0__.y)(isProd);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
});
|
|
@@ -30,7 +31,7 @@ export const __webpack_modules__ = {
|
|
|
30
31
|
},
|
|
31
32
|
"./src/utils/getESVersionTarget.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32
33
|
__webpack_require__.d(__webpack_exports__, {
|
|
33
|
-
|
|
34
|
+
y: ()=>getESVersionTarget
|
|
34
35
|
});
|
|
35
36
|
function getESVersionTarget(isProd) {
|
|
36
37
|
return isProd ? 'es2015' : 'es2019';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const __webpack_id__ = "src_plugins_target_plugin_ts";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"src_plugins_target_plugin_ts"
|
|
3
4
|
];
|
|
@@ -14,12 +15,12 @@ export const __webpack_modules__ = {
|
|
|
14
15
|
name: 'lynx:rsbuild:target',
|
|
15
16
|
setup (api) {
|
|
16
17
|
api.modifyBundlerChain((options, { environment, isProd })=>{
|
|
17
|
-
if ((0, _utils_is_web_js__WEBPACK_IMPORTED_MODULE_1__
|
|
18
|
-
(0, _utils_getESVersionTarget_js__WEBPACK_IMPORTED_MODULE_0__.
|
|
18
|
+
if ((0, _utils_is_web_js__WEBPACK_IMPORTED_MODULE_1__.H)(environment)) options.target([
|
|
19
|
+
(0, _utils_getESVersionTarget_js__WEBPACK_IMPORTED_MODULE_0__.y)(isProd),
|
|
19
20
|
'web'
|
|
20
21
|
]);
|
|
21
22
|
else options.target([
|
|
22
|
-
(0, _utils_getESVersionTarget_js__WEBPACK_IMPORTED_MODULE_0__.
|
|
23
|
+
(0, _utils_getESVersionTarget_js__WEBPACK_IMPORTED_MODULE_0__.y)(isProd)
|
|
23
24
|
]);
|
|
24
25
|
});
|
|
25
26
|
}
|
|
@@ -28,7 +29,7 @@ export const __webpack_modules__ = {
|
|
|
28
29
|
},
|
|
29
30
|
"./src/utils/getESVersionTarget.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
30
31
|
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
-
|
|
32
|
+
y: ()=>getESVersionTarget
|
|
32
33
|
});
|
|
33
34
|
function getESVersionTarget(isProd) {
|
|
34
35
|
return isProd ? 'es2015' : 'es2019';
|
|
@@ -36,7 +37,7 @@ export const __webpack_modules__ = {
|
|
|
36
37
|
},
|
|
37
38
|
"./src/utils/is-web.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
38
39
|
__webpack_require__.d(__webpack_exports__, {
|
|
39
|
-
|
|
40
|
+
H: ()=>isWeb
|
|
40
41
|
});
|
|
41
42
|
function isWeb(environment) {
|
|
42
43
|
return 'string' == typeof environment ? 'web' === environment : 'web' === environment.name;
|
package/dist/src_version_ts.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const __webpack_id__ = "src_version_ts";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"src_version_ts"
|
|
3
4
|
];
|
|
@@ -10,9 +11,9 @@ export const __webpack_modules__ = {
|
|
|
10
11
|
});
|
|
11
12
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
12
13
|
var package_namespaceObject = {
|
|
13
|
-
|
|
14
|
+
rE: "0.10.8"
|
|
14
15
|
};
|
|
15
|
-
const version = package_namespaceObject.
|
|
16
|
+
const version = package_namespaceObject.rE;
|
|
16
17
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
17
18
|
}
|
|
18
19
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/*! For license information please see vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js.js.LICENSE.txt */
|
|
2
|
+
export const __webpack_id__ = "vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js";
|
|
2
3
|
export const __webpack_ids__ = [
|
|
3
4
|
"vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js"
|
|
4
5
|
];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const __webpack_id__ = "vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc";
|
|
1
2
|
export const __webpack_ids__ = [
|
|
2
3
|
"vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"
|
|
3
4
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy-canary",
|
|
3
|
-
"version": "0.10.9-canary-20250826-
|
|
3
|
+
"version": "0.10.9-canary-20250826-1952fc15",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.1",
|
|
50
|
-
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.
|
|
50
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2-canary-20250826-1952fc15",
|
|
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",
|