@lynx-js/rspeedy-canary 0.12.0 → 0.12.1-canary-20251129-2cd5c0c8
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 +63 -54
- package/dist/0~src_config_validate_ts.js +695 -695
- package/dist/0~src_plugins_api_plugin_ts.js +6 -6
- package/dist/0~src_plugins_index_ts.js +3 -3
- package/dist/0~src_plugins_minify_plugin_ts.js +3 -3
- package/dist/0~src_plugins_output_plugin_ts.js +2 -2
- package/dist/0~src_plugins_swc_plugin_ts.js +2 -2
- package/dist/1~events-fs-fs_promises-os-path-stream.js +12 -12
- package/dist/1~node_child_process-node_events-node_fs-node_path.js +8 -8
- package/dist/1~src_cli_build_ts.js +20 -20
- package/dist/1~src_cli_commands_ts.js +6 -6
- package/dist/1~src_cli_dev_ts.js +17 -17
- package/dist/1~src_cli_inspect_ts.js +11 -11
- package/dist/1~src_cli_preview_ts.js +15 -15
- package/dist/1~src_config_validate_ts.js +695 -695
- package/dist/1~src_plugins_api_plugin_ts.js +6 -6
- package/dist/1~src_plugins_index_ts.js +3 -3
- package/dist/1~src_plugins_minify_plugin_ts.js +3 -3
- package/dist/1~src_plugins_output_plugin_ts.js +2 -2
- package/dist/1~src_plugins_rsdoctor_plugin_ts.js +5 -5
- package/dist/1~src_plugins_swc_plugin_ts.js +2 -2
- package/dist/1~vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js +2 -2
- package/dist/cli/main.js +10 -10
- package/dist/index.js +10 -10
- package/package.json +2 -2
|
@@ -7,9 +7,9 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginAPI: ()=>pluginAPI
|
|
9
9
|
});
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
10
|
+
var _rsbuild_core__rspack_import_0 = __webpack_require__("@rsbuild/core");
|
|
11
|
+
var _debug_js__rspack_import_1 = __webpack_require__("./src/debug.ts");
|
|
12
|
+
var _version_js__rspack_import_2 = __webpack_require__("./src/version.ts");
|
|
13
13
|
const sAPI = Symbol.for('rspeedy.api');
|
|
14
14
|
function pluginAPI(config) {
|
|
15
15
|
return {
|
|
@@ -17,13 +17,13 @@ export const __webpack_modules__ = {
|
|
|
17
17
|
setup (api) {
|
|
18
18
|
api.expose(sAPI, {
|
|
19
19
|
config,
|
|
20
|
-
debug:
|
|
20
|
+
debug: _debug_js__rspack_import_1.Yz,
|
|
21
21
|
async exit (code) {
|
|
22
22
|
const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
|
|
23
23
|
return exit(code);
|
|
24
24
|
},
|
|
25
|
-
logger:
|
|
26
|
-
version:
|
|
25
|
+
logger: _rsbuild_core__rspack_import_0.logger,
|
|
26
|
+
version: _version_js__rspack_import_2.version
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -8,7 +8,7 @@ export const __webpack_modules__ = {
|
|
|
8
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
9
9
|
applyDefaultPlugins: ()=>applyDefaultPlugins
|
|
10
10
|
});
|
|
11
|
-
var
|
|
11
|
+
var _debug_js__rspack_import_0 = __webpack_require__("./src/debug.ts");
|
|
12
12
|
async function applyDebugPlugins(rsbuildInstance, config) {
|
|
13
13
|
const debugPlugins = Object.freeze([
|
|
14
14
|
__webpack_require__.e("src_plugins_emitOnErrors_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/emitOnErrors.plugin.ts")).then(({ pluginEmitOnErrors })=>pluginEmitOnErrors()),
|
|
@@ -38,8 +38,8 @@ export const __webpack_modules__ = {
|
|
|
38
38
|
rsbuildInstance.addPlugins(plugins);
|
|
39
39
|
})
|
|
40
40
|
];
|
|
41
|
-
if ((0,
|
|
42
|
-
(0,
|
|
41
|
+
if ((0, _debug_js__rspack_import_0._o)()) {
|
|
42
|
+
(0, _debug_js__rspack_import_0.Yz)('apply Rspeedy default debug plugins');
|
|
43
43
|
promises.push(applyDebugPlugins(rsbuildInstance, config));
|
|
44
44
|
}
|
|
45
45
|
await Promise.all(promises);
|
|
@@ -7,7 +7,7 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginMinify: ()=>pluginMinify
|
|
9
9
|
});
|
|
10
|
-
var
|
|
10
|
+
var _debug_js__rspack_import_0 = __webpack_require__("./src/debug.ts");
|
|
11
11
|
function pluginMinify(options) {
|
|
12
12
|
const defaultConfig = Object.freeze({
|
|
13
13
|
output: {
|
|
@@ -57,7 +57,7 @@ export const __webpack_modules__ = {
|
|
|
57
57
|
setup (api) {
|
|
58
58
|
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>{
|
|
59
59
|
if (false === options) {
|
|
60
|
-
(0,
|
|
60
|
+
(0, _debug_js__rspack_import_0.Yz)("minification disabled");
|
|
61
61
|
return mergeRsbuildConfig(config, {
|
|
62
62
|
output: {
|
|
63
63
|
minify: false
|
|
@@ -69,7 +69,7 @@ export const __webpack_modules__ = {
|
|
|
69
69
|
defaultConfig
|
|
70
70
|
];
|
|
71
71
|
if (true !== options && void 0 !== options) {
|
|
72
|
-
(0,
|
|
72
|
+
(0, _debug_js__rspack_import_0.Yz)("merging minification options");
|
|
73
73
|
configs.push({
|
|
74
74
|
output: {
|
|
75
75
|
minify: options
|
|
@@ -13,12 +13,12 @@ export const __webpack_modules__ = {
|
|
|
13
13
|
__webpack_require__.d(__webpack_exports__, {
|
|
14
14
|
pluginOutput: ()=>pluginOutput
|
|
15
15
|
});
|
|
16
|
-
var
|
|
16
|
+
var _config_output_dist_path_js__rspack_import_0 = __webpack_require__("./src/config/output/dist-path.ts");
|
|
17
17
|
const defaultFilenameOptions = Object.freeze({
|
|
18
18
|
css: '[name]/[name].css'
|
|
19
19
|
});
|
|
20
20
|
const defaultDistPathOptions = Object.freeze({
|
|
21
|
-
css:
|
|
21
|
+
css: _config_output_dist_path_js__rspack_import_0.z
|
|
22
22
|
});
|
|
23
23
|
function pluginOutput(options) {
|
|
24
24
|
return {
|
|
@@ -7,8 +7,8 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginRsdoctor: ()=>pluginRsdoctor
|
|
9
9
|
});
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var _rsbuild_core__rspack_import_0 = __webpack_require__("@rsbuild/core");
|
|
11
|
+
var _utils_is_ci_js__rspack_import_1 = __webpack_require__("./src/utils/is-ci.ts");
|
|
12
12
|
function pluginRsdoctor(options) {
|
|
13
13
|
return {
|
|
14
14
|
name: 'lynx:rsbuild:rsdoctor',
|
|
@@ -25,7 +25,7 @@ export const __webpack_modules__ = {
|
|
|
25
25
|
if (registered) continue;
|
|
26
26
|
config.plugins ??= [];
|
|
27
27
|
const defaultOptions = {
|
|
28
|
-
disableClientServer: (0,
|
|
28
|
+
disableClientServer: (0, _utils_is_ci_js__rspack_import_1.J)(),
|
|
29
29
|
supports: {
|
|
30
30
|
banner: true
|
|
31
31
|
},
|
|
@@ -40,9 +40,9 @@ export const __webpack_modules__ = {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
config.plugins.push(new RsdoctorRspackPlugin((0,
|
|
43
|
+
config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__rspack_import_0.mergeRsbuildConfig)(defaultOptions, options)));
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
_rsbuild_core__rspack_import_0.logger.info("Rsdoctor is enabled.");
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
};
|
|
@@ -7,7 +7,7 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginSwc: ()=>pluginSwc
|
|
9
9
|
});
|
|
10
|
-
var
|
|
10
|
+
var _utils_getESVersionTarget_js__rspack_import_0 = __webpack_require__("./src/utils/getESVersionTarget.ts");
|
|
11
11
|
function pluginSwc() {
|
|
12
12
|
return {
|
|
13
13
|
name: 'lynx:rsbuild:swc',
|
|
@@ -19,7 +19,7 @@ export const __webpack_modules__ = {
|
|
|
19
19
|
swc (config) {
|
|
20
20
|
delete config.env;
|
|
21
21
|
config.jsc ??= {};
|
|
22
|
-
config.jsc.target = (0,
|
|
22
|
+
config.jsc.target = (0, _utils_getESVersionTarget_js__rspack_import_0.y)(isProd);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -1756,7 +1756,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1756
1756
|
createOption: ()=>createOption,
|
|
1757
1757
|
program: ()=>program
|
|
1758
1758
|
});
|
|
1759
|
-
var
|
|
1760
|
-
const { program, createCommand, createArgument, createOption, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Command, Argument, Option, Help } =
|
|
1759
|
+
var _index_js__rspack_import_0 = __webpack_require__("../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/index.js");
|
|
1760
|
+
const { program, createCommand, createArgument, createOption, CommanderError, InvalidArgumentError, InvalidOptionArgumentError, Command, Argument, Option, Help } = _index_js__rspack_import_0;
|
|
1761
1761
|
}
|
|
1762
1762
|
};
|
package/dist/cli/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as __rspack_external__rsbuild_core_1b356efc from "@rsbuild/core";
|
|
2
|
+
import * as __rspack_external_node_process_786449bf from "node:process";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
|
|
5
5
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
@@ -179,9 +179,9 @@ var __webpack_modules__ = {
|
|
|
179
179
|
Yz: ()=>debug,
|
|
180
180
|
_o: ()=>isDebug
|
|
181
181
|
});
|
|
182
|
-
var
|
|
183
|
-
var
|
|
184
|
-
var
|
|
182
|
+
var _rsbuild_core__rspack_import_0 = __webpack_require__("@rsbuild/core");
|
|
183
|
+
var picocolors__rspack_import_1 = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
184
|
+
var picocolors__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(picocolors__rspack_import_1);
|
|
185
185
|
const isDebug = ()=>{
|
|
186
186
|
if (!process.env['DEBUG']) return false;
|
|
187
187
|
const values = process.env['DEBUG'].toLocaleLowerCase().split(',');
|
|
@@ -191,12 +191,12 @@ var __webpack_modules__ = {
|
|
|
191
191
|
'*'
|
|
192
192
|
].some((key)=>values.includes(key));
|
|
193
193
|
};
|
|
194
|
-
const label =
|
|
194
|
+
const label = picocolors__rspack_import_1_default().bgCyan('lynx');
|
|
195
195
|
const debug = (message)=>{
|
|
196
196
|
if (isDebug()) {
|
|
197
197
|
const result = 'string' == typeof message ? message : message();
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
_rsbuild_core__rspack_import_0.logger.level = 'verbose';
|
|
199
|
+
_rsbuild_core__rspack_import_0.logger.debug(`${label} ${result}`);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const debugList = (prefix, messages)=>debug(()=>`${prefix} ${[
|
|
@@ -204,10 +204,10 @@ var __webpack_modules__ = {
|
|
|
204
204
|
].concat(messages).join('\n - ')}`);
|
|
205
205
|
},
|
|
206
206
|
"@rsbuild/core": function(module) {
|
|
207
|
-
module.exports =
|
|
207
|
+
module.exports = __rspack_external__rsbuild_core_1b356efc;
|
|
208
208
|
},
|
|
209
209
|
"node:process": function(module) {
|
|
210
|
-
module.exports =
|
|
210
|
+
module.exports = __rspack_external_node_process_786449bf;
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
var __webpack_module_cache__ = {};
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as __rspack_external__rsbuild_core_1b356efc from "@rsbuild/core";
|
|
2
|
+
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
3
3
|
import node_fs from "node:fs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { register } from "#register";
|
|
@@ -76,9 +76,9 @@ var __webpack_modules__ = {
|
|
|
76
76
|
Yz: ()=>debug,
|
|
77
77
|
_o: ()=>isDebug
|
|
78
78
|
});
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
79
|
+
var _rsbuild_core__rspack_import_0 = __webpack_require__("@rsbuild/core");
|
|
80
|
+
var picocolors__rspack_import_1 = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
81
|
+
var picocolors__rspack_import_1_default = /*#__PURE__*/ __webpack_require__.n(picocolors__rspack_import_1);
|
|
82
82
|
const isDebug = ()=>{
|
|
83
83
|
if (!process.env['DEBUG']) return false;
|
|
84
84
|
const values = process.env['DEBUG'].toLocaleLowerCase().split(',');
|
|
@@ -88,12 +88,12 @@ var __webpack_modules__ = {
|
|
|
88
88
|
'*'
|
|
89
89
|
].some((key)=>values.includes(key));
|
|
90
90
|
};
|
|
91
|
-
const label =
|
|
91
|
+
const label = picocolors__rspack_import_1_default().bgCyan('lynx');
|
|
92
92
|
const debug = (message)=>{
|
|
93
93
|
if (isDebug()) {
|
|
94
94
|
const result = 'string' == typeof message ? message : message();
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
_rsbuild_core__rspack_import_0.logger.level = 'verbose';
|
|
96
|
+
_rsbuild_core__rspack_import_0.logger.debug(`${label} ${result}`);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
const debugList = (prefix, messages)=>debug(()=>`${prefix} ${[
|
|
@@ -114,10 +114,10 @@ var __webpack_modules__ = {
|
|
|
114
114
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
115
115
|
},
|
|
116
116
|
"@rsbuild/core": function(module) {
|
|
117
|
-
module.exports =
|
|
117
|
+
module.exports = __rspack_external__rsbuild_core_1b356efc;
|
|
118
118
|
},
|
|
119
119
|
"node:path": function(module) {
|
|
120
|
-
module.exports =
|
|
120
|
+
module.exports = __rspack_external_node_path_c5b9b54f;
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
var __webpack_module_cache__ = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy-canary",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1-canary-20251129-2cd5c0c8",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.18.4",
|
|
54
54
|
"@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
|
|
55
55
|
"@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
|
|
56
|
-
"@rsbuild/core": "1.6.
|
|
56
|
+
"@rsbuild/core": "1.6.9",
|
|
57
57
|
"@rsbuild/plugin-css-minimizer": "1.0.3",
|
|
58
58
|
"@rsdoctor/rspack-plugin": "1.2.3"
|
|
59
59
|
},
|