@lynx-js/rspeedy 0.12.0 → 0.12.2
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 +18 -0
- package/dist/0~src_cli_exit_ts.js +3 -3
- package/dist/0~src_config_validate_ts.js +2022 -1954
- package/dist/0~src_plugins_api_plugin_ts.js +9 -9
- package/dist/0~src_plugins_chunkLoading_plugin_ts.js +3 -3
- package/dist/0~src_plugins_dev_plugin_ts.js +3 -3
- package/dist/0~src_plugins_emitOnErrors_plugin_ts.js +3 -3
- package/dist/0~src_plugins_index_ts.js +6 -6
- package/dist/0~src_plugins_inspect_plugin_ts.js +4 -4
- package/dist/0~src_plugins_minify_plugin_ts.js +6 -6
- package/dist/0~src_plugins_optimization_plugin_ts.js +3 -3
- package/dist/0~src_plugins_output_plugin_ts.js +6 -6
- package/dist/0~src_plugins_resolve_plugin_ts.js +3 -3
- package/dist/0~src_plugins_rsdoctor_plugin_ts.js +3 -3
- package/dist/0~src_plugins_sourcemap_plugin_ts.js +3 -3
- package/dist/0~src_plugins_swc_plugin_ts.js +6 -6
- package/dist/0~src_plugins_target_plugin_ts.js +4 -4
- package/dist/0~vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js.js +3 -3
- package/dist/0~vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc.js +8 -8
- package/dist/1~events-fs-fs_promises-os-path-stream.js +20 -20
- package/dist/1~node_child_process-node_events-node_fs-node_path.js +14 -14
- package/dist/1~src_cli_build_ts.js +28 -28
- package/dist/1~src_cli_commands_ts.js +12 -12
- package/dist/1~src_cli_dev_ts.js +24 -24
- package/dist/1~src_cli_inspect_ts.js +17 -17
- package/dist/1~src_cli_preview_ts.js +21 -21
- package/dist/1~src_config_validate_ts.js +2022 -1954
- package/dist/1~src_plugins_api_plugin_ts.js +9 -9
- package/dist/1~src_plugins_chunkLoading_plugin_ts.js +3 -3
- package/dist/1~src_plugins_dev_plugin_ts.js +3 -3
- package/dist/1~src_plugins_emitOnErrors_plugin_ts.js +3 -3
- package/dist/1~src_plugins_index_ts.js +6 -6
- package/dist/1~src_plugins_inspect_plugin_ts.js +4 -4
- package/dist/1~src_plugins_minify_plugin_ts.js +6 -6
- package/dist/1~src_plugins_optimization_plugin_ts.js +3 -3
- package/dist/1~src_plugins_output_plugin_ts.js +6 -6
- package/dist/1~src_plugins_resolve_plugin_ts.js +3 -3
- package/dist/1~src_plugins_rsdoctor_plugin_ts.js +9 -9
- package/dist/1~src_plugins_sourcemap_plugin_ts.js +3 -3
- package/dist/1~src_plugins_swc_plugin_ts.js +6 -6
- package/dist/1~src_plugins_target_plugin_ts.js +4 -4
- package/dist/1~src_version_ts.js +4 -4
- package/dist/1~vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js.js +3 -3
- package/dist/1~vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js +12 -12
- package/dist/1~vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js.js +3 -3
- package/dist/1~vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc.js +8 -8
- package/dist/cli/main.js +21 -21
- package/dist/cli/start.js +1 -1
- package/dist/index.js +22 -22
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_api_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_api_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/api.plugin.ts"
|
|
6
|
+
"./src/plugins/api.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
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 __webpack_require__.e("src_cli_exit_ts").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.rE
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LynxCacheEventsPlugin } from "@lynx-js/cache-events-webpack-plugin";
|
|
2
2
|
import { ChunkLoadingWebpackPlugin } from "@lynx-js/chunk-loading-webpack-plugin";
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
3
|
+
export const __rspack_esm_id = "src_plugins_chunkLoading_plugin_ts";
|
|
4
|
+
export const __rspack_esm_ids = [
|
|
5
5
|
"src_plugins_chunkLoading_plugin_ts"
|
|
6
6
|
];
|
|
7
7
|
export const __webpack_modules__ = {
|
|
8
|
-
"./src/plugins/chunkLoading.plugin.ts"
|
|
8
|
+
"./src/plugins/chunkLoading.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
10
10
|
pluginChunkLoading: ()=>pluginChunkLoading
|
|
11
11
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
export const
|
|
3
|
-
export const
|
|
2
|
+
export const __rspack_esm_id = "src_plugins_dev_plugin_ts";
|
|
3
|
+
export const __rspack_esm_ids = [
|
|
4
4
|
"src_plugins_dev_plugin_ts"
|
|
5
5
|
];
|
|
6
6
|
export const __webpack_modules__ = {
|
|
7
|
-
"./src/plugins/dev.plugin.ts"
|
|
7
|
+
"./src/plugins/dev.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
9
9
|
pluginDev: ()=>pluginDev
|
|
10
10
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_emitOnErrors_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_emitOnErrors_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/emitOnErrors.plugin.ts"
|
|
6
|
+
"./src/plugins/emitOnErrors.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginEmitOnErrors: ()=>pluginEmitOnErrors
|
|
9
9
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_index_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_index_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/index.ts"
|
|
6
|
+
"./src/plugins/index.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.r(__webpack_exports__);
|
|
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);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
|
-
export const
|
|
3
|
-
export const
|
|
2
|
+
export const __rspack_esm_id = "src_plugins_inspect_plugin_ts";
|
|
3
|
+
export const __rspack_esm_ids = [
|
|
4
4
|
"src_plugins_inspect_plugin_ts"
|
|
5
5
|
];
|
|
6
6
|
export const __webpack_modules__ = {
|
|
7
|
-
"./src/config/output/dist-path.ts"
|
|
7
|
+
"./src/config/output/dist-path.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
9
9
|
z: ()=>DEFAULT_DIST_PATH_INTERMEDIATE
|
|
10
10
|
});
|
|
11
11
|
const DEFAULT_DIST_PATH_INTERMEDIATE = '.rspeedy';
|
|
12
12
|
},
|
|
13
|
-
"./src/plugins/inspect.plugin.ts"
|
|
13
|
+
"./src/plugins/inspect.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14
14
|
__webpack_require__.d(__webpack_exports__, {
|
|
15
15
|
inspectRspeedyConfig: ()=>inspectRspeedyConfig,
|
|
16
16
|
pluginInspect: ()=>pluginInspect
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_minify_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_minify_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/minify.plugin.ts"
|
|
6
|
+
"./src/plugins/minify.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_optimization_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_optimization_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/optimization.plugin.ts"
|
|
6
|
+
"./src/plugins/optimization.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginOptimization: ()=>pluginOptimization
|
|
9
9
|
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_output_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_output_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/config/output/dist-path.ts"
|
|
6
|
+
"./src/config/output/dist-path.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
z: ()=>DEFAULT_DIST_PATH_INTERMEDIATE
|
|
9
9
|
});
|
|
10
10
|
const DEFAULT_DIST_PATH_INTERMEDIATE = '.rspeedy';
|
|
11
11
|
},
|
|
12
|
-
"./src/plugins/output.plugin.ts"
|
|
12
|
+
"./src/plugins/output.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
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 {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_resolve_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_resolve_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/resolve.plugin.ts"
|
|
6
|
+
"./src/plugins/resolve.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginResolve: ()=>pluginResolve
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_rsdoctor_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_rsdoctor_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/rsdoctor.plugin.ts"
|
|
6
|
+
"./src/plugins/rsdoctor.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginRsdoctor: ()=>pluginRsdoctor
|
|
9
9
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_sourcemap_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_sourcemap_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/sourcemap.plugin.ts"
|
|
6
|
+
"./src/plugins/sourcemap.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginSourcemap: ()=>pluginSourcemap
|
|
9
9
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_swc_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_swc_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/swc.plugin.ts"
|
|
6
|
+
"./src/plugins/swc.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
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
|
});
|
|
@@ -28,7 +28,7 @@ export const __webpack_modules__ = {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
"./src/utils/getESVersionTarget.ts"
|
|
31
|
+
"./src/utils/getESVersionTarget.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32
32
|
__webpack_require__.d(__webpack_exports__, {
|
|
33
33
|
y: ()=>getESVersionTarget
|
|
34
34
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "src_plugins_target_plugin_ts";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"src_plugins_target_plugin_ts"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"./src/plugins/target.plugin.ts"
|
|
6
|
+
"./src/plugins/target.plugin.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginTarget: ()=>pluginTarget
|
|
9
9
|
});
|
|
@@ -28,7 +28,7 @@ export const __webpack_modules__ = {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
"./src/utils/getESVersionTarget.ts"
|
|
31
|
+
"./src/utils/getESVersionTarget.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
32
32
|
__webpack_require__.d(__webpack_exports__, {
|
|
33
33
|
y: ()=>getESVersionTarget
|
|
34
34
|
});
|
package/dist/0~vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"../../../node_modules/.pnpm/ipaddr.js@2.2.0/node_modules/ipaddr.js/lib/ipaddr.js"
|
|
6
|
+
"../../../node_modules/.pnpm/ipaddr.js@2.2.0/node_modules/ipaddr.js/lib/ipaddr.js" (module) {
|
|
7
7
|
(function(root) {
|
|
8
8
|
'use strict';
|
|
9
9
|
const ipv4Part = '(0?\\d+|0x[a-f0-9]+)';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
1
|
+
export const __rspack_esm_id = "vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc";
|
|
2
|
+
export const __rspack_esm_ids = [
|
|
3
3
|
"vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc"
|
|
4
4
|
];
|
|
5
5
|
export const __webpack_modules__ = {
|
|
6
|
-
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js"
|
|
6
|
+
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/array.js" (__unused_webpack_module, exports) {
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
@@ -19,7 +19,7 @@ export const __webpack_modules__ = {
|
|
|
19
19
|
};
|
|
20
20
|
exports.arrayToString = arrayToString;
|
|
21
21
|
},
|
|
22
|
-
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js"
|
|
22
|
+
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/function.js" (__unused_webpack_module, exports, __webpack_require__) {
|
|
23
23
|
Object.defineProperty(exports, "__esModule", {
|
|
24
24
|
value: true
|
|
25
25
|
});
|
|
@@ -212,7 +212,7 @@ export const __webpack_modules__ = {
|
|
|
212
212
|
}
|
|
213
213
|
exports.FunctionParser = FunctionParser;
|
|
214
214
|
},
|
|
215
|
-
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js"
|
|
215
|
+
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/index.js" (__unused_webpack_module, exports, __webpack_require__) {
|
|
216
216
|
exports.stringify = void 0;
|
|
217
217
|
const stringify_1 = __webpack_require__("../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js");
|
|
218
218
|
const quote_1 = __webpack_require__("../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js");
|
|
@@ -272,7 +272,7 @@ export const __webpack_modules__ = {
|
|
|
272
272
|
return (value, space, next, key)=>replacer(value, space, (value)=>stringify_1.toString(value, space, next, key), key);
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
|
-
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js"
|
|
275
|
+
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/object.js" (__unused_webpack_module, exports, __webpack_require__) {
|
|
276
276
|
Object.defineProperty(exports, "__esModule", {
|
|
277
277
|
value: true
|
|
278
278
|
});
|
|
@@ -321,7 +321,7 @@ export const __webpack_modules__ = {
|
|
|
321
321
|
"[object Window]": globalToString
|
|
322
322
|
};
|
|
323
323
|
},
|
|
324
|
-
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js"
|
|
324
|
+
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/quote.js" (__unused_webpack_module, exports) {
|
|
325
325
|
Object.defineProperty(exports, "__esModule", {
|
|
326
326
|
value: true
|
|
327
327
|
});
|
|
@@ -386,7 +386,7 @@ export const __webpack_modules__ = {
|
|
|
386
386
|
}
|
|
387
387
|
exports.stringifyPath = stringifyPath;
|
|
388
388
|
},
|
|
389
|
-
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js"
|
|
389
|
+
"../../../node_modules/.pnpm/javascript-stringify@2.1.0/node_modules/javascript-stringify/dist/stringify.js" (__unused_webpack_module, exports, __webpack_require__) {
|
|
390
390
|
Object.defineProperty(exports, "__esModule", {
|
|
391
391
|
value: true
|
|
392
392
|
});
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
1
|
+
import * as __rspack_external_events from "events";
|
|
2
|
+
import * as __rspack_external_fs from "fs";
|
|
3
|
+
import * as __rspack_external_fs_promises_400951f8 from "fs/promises";
|
|
4
|
+
import * as __rspack_external_os from "os";
|
|
5
|
+
import * as __rspack_external_path from "path";
|
|
6
|
+
import * as __rspack_external_stream from "stream";
|
|
7
|
+
export const __rspack_esm_id = "events-fs-fs_promises-os-path-stream";
|
|
8
|
+
export const __rspack_esm_ids = [
|
|
9
9
|
"events-fs-fs_promises-os-path-stream"
|
|
10
10
|
];
|
|
11
11
|
export const __webpack_modules__ = {
|
|
12
|
-
events
|
|
13
|
-
module.exports =
|
|
12
|
+
events (module) {
|
|
13
|
+
module.exports = __rspack_external_events;
|
|
14
14
|
},
|
|
15
|
-
fs
|
|
16
|
-
module.exports =
|
|
15
|
+
fs (module) {
|
|
16
|
+
module.exports = __rspack_external_fs;
|
|
17
17
|
},
|
|
18
|
-
"fs/promises"
|
|
19
|
-
module.exports =
|
|
18
|
+
"fs/promises" (module) {
|
|
19
|
+
module.exports = __rspack_external_fs_promises_400951f8;
|
|
20
20
|
},
|
|
21
|
-
os
|
|
22
|
-
module.exports =
|
|
21
|
+
os (module) {
|
|
22
|
+
module.exports = __rspack_external_os;
|
|
23
23
|
},
|
|
24
|
-
path
|
|
25
|
-
module.exports =
|
|
24
|
+
path (module) {
|
|
25
|
+
module.exports = __rspack_external_path;
|
|
26
26
|
},
|
|
27
|
-
stream
|
|
28
|
-
module.exports =
|
|
27
|
+
stream (module) {
|
|
28
|
+
module.exports = __rspack_external_stream;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
1
|
+
import * as __rspack_external_node_child_process_27f17141 from "node:child_process";
|
|
2
|
+
import * as __rspack_external_node_events_0a6aefe7 from "node:events";
|
|
3
|
+
import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
|
|
4
|
+
import * as __rspack_external_node_path_c5b9b54f from "node:path";
|
|
5
|
+
export const __rspack_esm_id = "node_child_process-node_events-node_fs-node_path";
|
|
6
|
+
export const __rspack_esm_ids = [
|
|
7
7
|
"node_child_process-node_events-node_fs-node_path"
|
|
8
8
|
];
|
|
9
9
|
export const __webpack_modules__ = {
|
|
10
|
-
"node:child_process"
|
|
11
|
-
module.exports =
|
|
10
|
+
"node:child_process" (module) {
|
|
11
|
+
module.exports = __rspack_external_node_child_process_27f17141;
|
|
12
12
|
},
|
|
13
|
-
"node:events"
|
|
14
|
-
module.exports =
|
|
13
|
+
"node:events" (module) {
|
|
14
|
+
module.exports = __rspack_external_node_events_0a6aefe7;
|
|
15
15
|
},
|
|
16
|
-
"node:fs"
|
|
17
|
-
module.exports =
|
|
16
|
+
"node:fs" (module) {
|
|
17
|
+
module.exports = __rspack_external_node_fs_5ea92f0c;
|
|
18
18
|
},
|
|
19
|
-
"node:path"
|
|
20
|
-
module.exports =
|
|
19
|
+
"node:path" (module) {
|
|
20
|
+
module.exports = __rspack_external_node_path_c5b9b54f;
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { pathToFileURL } from "node:url";
|
|
2
2
|
import { register } from "#register";
|
|
3
|
-
import * as
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
3
|
+
import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
|
|
4
|
+
export const __rspack_esm_id = "src_cli_build_ts";
|
|
5
|
+
export const __rspack_esm_ids = [
|
|
6
6
|
"src_cli_build_ts"
|
|
7
7
|
];
|
|
8
8
|
export const __webpack_modules__ = {
|
|
9
|
-
"./src/cli/build.ts"
|
|
9
|
+
"./src/cli/build.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10
10
|
__webpack_require__.d(__webpack_exports__, {
|
|
11
11
|
build: ()=>build
|
|
12
12
|
});
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
13
|
+
var node_path__rspack_import_0 = __webpack_require__("node:path");
|
|
14
|
+
var _rsbuild_core__rspack_import_1 = __webpack_require__("@rsbuild/core");
|
|
15
|
+
var picocolors__rspack_import_7 = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
16
|
+
var picocolors__rspack_import_7_default = /*#__PURE__*/ __webpack_require__.n(picocolors__rspack_import_7);
|
|
17
|
+
var _exit_js__rspack_import_2 = __webpack_require__("./src/cli/exit.ts");
|
|
18
|
+
var _create_rspeedy_js__rspack_import_3 = __webpack_require__("./src/create-rspeedy.ts");
|
|
19
|
+
var _init_js__rspack_import_4 = __webpack_require__("./src/cli/init.ts");
|
|
20
|
+
var _watch_js__rspack_import_5 = __webpack_require__("./src/cli/watch.ts");
|
|
21
|
+
var _utils_is_ci_js__rspack_import_6 = __webpack_require__("./src/utils/is-ci.ts");
|
|
22
22
|
async function build(cwd, buildOptions) {
|
|
23
|
-
const shouldExit = 'true' !== process.env['RSDOCTOR'] || (0,
|
|
23
|
+
const shouldExit = 'true' !== process.env['RSDOCTOR'] || (0, _utils_is_ci_js__rspack_import_6.J)();
|
|
24
24
|
const isWatch = buildOptions.watch ?? false;
|
|
25
25
|
let onBeforeRestart = [];
|
|
26
26
|
try {
|
|
27
|
-
const { rspeedyConfig, configPath, createRspeedyOptions } = await (0,
|
|
27
|
+
const { rspeedyConfig, configPath, createRspeedyOptions } = await (0, _init_js__rspack_import_4.T)(cwd, buildOptions);
|
|
28
28
|
if (isWatch) {
|
|
29
|
-
const watchedFiles = (0,
|
|
30
|
-
await (0,
|
|
31
|
-
|
|
29
|
+
const watchedFiles = (0, _watch_js__rspack_import_5.G)(configPath, rspeedyConfig);
|
|
30
|
+
await (0, _watch_js__rspack_import_5.N)(watchedFiles.map((filePath)=>node_path__rspack_import_0["default"].isAbsolute(filePath) ? filePath : node_path__rspack_import_0["default"].join(cwd, filePath)), async (filename)=>{
|
|
31
|
+
_rsbuild_core__rspack_import_1.logger.info(`Restart because ${picocolors__rspack_import_7_default().yellow(filename)} is changed.\n`);
|
|
32
32
|
const cleanup = onBeforeRestart.map((f)=>f());
|
|
33
33
|
onBeforeRestart = [];
|
|
34
34
|
await Promise.all(cleanup);
|
|
35
35
|
await build.call(this, cwd, buildOptions);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
const rspeedy = await (0,
|
|
38
|
+
const rspeedy = await (0, _create_rspeedy_js__rspack_import_3.x)(createRspeedyOptions);
|
|
39
39
|
const { close } = await rspeedy.build({
|
|
40
40
|
watch: isWatch
|
|
41
41
|
});
|
|
42
42
|
if (isWatch) onBeforeRestart.push(close);
|
|
43
43
|
else await close();
|
|
44
44
|
} catch (error) {
|
|
45
|
-
|
|
46
|
-
if (shouldExit) return void (0,
|
|
45
|
+
_rsbuild_core__rspack_import_1.logger.error(error);
|
|
46
|
+
if (shouldExit) return void (0, _exit_js__rspack_import_2.exit)(1);
|
|
47
47
|
}
|
|
48
|
-
if (shouldExit && !isWatch) (0,
|
|
48
|
+
if (shouldExit && !isWatch) (0, _exit_js__rspack_import_2.exit)();
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"./src/cli/init.ts"
|
|
51
|
+
"./src/cli/init.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
52
52
|
__webpack_require__.d(__webpack_exports__, {
|
|
53
53
|
T: ()=>init
|
|
54
54
|
});
|
|
@@ -168,7 +168,7 @@ export const __webpack_modules__ = {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
},
|
|
171
|
-
"./src/cli/watch.ts"
|
|
171
|
+
"./src/cli/watch.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
172
172
|
__webpack_require__.d(__webpack_exports__, {
|
|
173
173
|
G: ()=>getWatchedFiles,
|
|
174
174
|
N: ()=>watchFiles
|
|
@@ -213,7 +213,7 @@ export const __webpack_modules__ = {
|
|
|
213
213
|
return watchedFiles;
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
|
-
"./src/create-rspeedy.ts"
|
|
216
|
+
"./src/create-rspeedy.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
217
217
|
__webpack_require__.d(__webpack_exports__, {
|
|
218
218
|
x: ()=>createRspeedy
|
|
219
219
|
});
|
|
@@ -414,7 +414,7 @@ export const __webpack_modules__ = {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
},
|
|
417
|
-
"./src/utils/is-ci.ts"
|
|
417
|
+
"./src/utils/is-ci.ts" (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
418
418
|
__webpack_require__.d(__webpack_exports__, {
|
|
419
419
|
J: ()=>isCI
|
|
420
420
|
});
|
|
@@ -422,7 +422,7 @@ export const __webpack_modules__ = {
|
|
|
422
422
|
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
423
423
|
}
|
|
424
424
|
},
|
|
425
|
-
"node:fs"
|
|
426
|
-
module.exports =
|
|
425
|
+
"node:fs" (module) {
|
|
426
|
+
module.exports = __rspack_external_node_fs_5ea92f0c;
|
|
427
427
|
}
|
|
428
428
|
};
|