@rspack/cli 1.2.2 → 1.2.3
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/dist/{574.js → 737.js} +2 -4
- package/dist/{574.mjs → 737.mjs} +2 -4
- package/dist/index.js +574 -574
- package/dist/index.mjs +16 -18
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__ from "@rspack/core";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_inspector_dd9822d6__ from "node:inspector";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__ from "node:util";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE_colorette__ from "colorette";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_yargs__ from "yargs";
|
|
9
|
-
import * as
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE_yargs_helpers_525217b7__ from "yargs/helpers";
|
|
10
10
|
var __webpack_modules__ = {
|
|
11
11
|
"@rspack/core": function(module) {
|
|
12
|
-
module.exports =
|
|
12
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__;
|
|
13
13
|
},
|
|
14
14
|
"node:fs": function(module) {
|
|
15
|
-
module.exports =
|
|
15
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
|
|
16
16
|
},
|
|
17
17
|
"node:inspector": function(module) {
|
|
18
|
-
module.exports =
|
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_node_inspector_dd9822d6__;
|
|
19
19
|
},
|
|
20
20
|
"node:path": function(module) {
|
|
21
|
-
module.exports =
|
|
21
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__;
|
|
22
22
|
},
|
|
23
23
|
"node:url": function(module) {
|
|
24
|
-
module.exports =
|
|
24
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__;
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
var __webpack_module_cache__ = {};
|
|
@@ -220,9 +220,7 @@ function setBuiltinEnvArg(env, envNameSuffix, value) {
|
|
|
220
220
|
const envNames = [
|
|
221
221
|
`RSPACK_${envNameSuffix}`
|
|
222
222
|
];
|
|
223
|
-
for (const envName of envNames)
|
|
224
|
-
if (!(envName in env)) env[envName] = value;
|
|
225
|
-
}
|
|
223
|
+
for (const envName of envNames)if (!(envName in env)) env[envName] = value;
|
|
226
224
|
}
|
|
227
225
|
function ensureEnvObject(options) {
|
|
228
226
|
if (Array.isArray(options.env)) normalizeEnv(options);
|
|
@@ -586,7 +584,7 @@ class RspackCLI {
|
|
|
586
584
|
}
|
|
587
585
|
getLogger() {
|
|
588
586
|
return {
|
|
589
|
-
error: (val)=>console.error(`[rspack-cli] ${this.colors.red(
|
|
587
|
+
error: (val)=>console.error(`[rspack-cli] ${this.colors.red(__WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__["default"].format(val))}`),
|
|
590
588
|
warn: (val)=>console.warn(`[rspack-cli] ${this.colors.yellow(val)}`),
|
|
591
589
|
info: (val)=>console.info(`[rspack-cli] ${this.colors.cyan(val)}`),
|
|
592
590
|
success: (val)=>console.log(`[rspack-cli] ${this.colors.green(val)}`),
|
|
@@ -601,7 +599,7 @@ class RspackCLI {
|
|
|
601
599
|
this.program.strictCommands(true).strict(true);
|
|
602
600
|
this.program.middleware(normalizeEnv);
|
|
603
601
|
this.registerCommands();
|
|
604
|
-
await this.program.parseAsync((0,
|
|
602
|
+
await this.program.parseAsync((0, __WEBPACK_EXTERNAL_MODULE_yargs_helpers_525217b7__.hideBin)(argv));
|
|
605
603
|
}
|
|
606
604
|
async registerCommands() {
|
|
607
605
|
const builtinCommands = [
|
|
@@ -634,7 +632,7 @@ class RspackCLI {
|
|
|
634
632
|
}
|
|
635
633
|
if (options.profile) item.profile = true;
|
|
636
634
|
if (process.env.RSPACK_PROFILE) {
|
|
637
|
-
const { applyProfile } = await __webpack_require__.e("
|
|
635
|
+
const { applyProfile } = await __webpack_require__.e("737").then(__webpack_require__.bind(__webpack_require__, "./src/utils/profile.ts"));
|
|
638
636
|
await applyProfile(process.env.RSPACK_PROFILE, item);
|
|
639
637
|
}
|
|
640
638
|
if (options.watch) item.watch = options.watch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.dev",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"yargs": "17.6.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@rslib/core": "0.
|
|
41
|
+
"@rslib/core": "0.4.0",
|
|
42
42
|
"@types/interpret": "^1.1.3",
|
|
43
43
|
"@types/rechoir": "^0.6.1",
|
|
44
44
|
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"cross-env": "^7.0.3",
|
|
48
48
|
"execa": "^5.0.0",
|
|
49
49
|
"ts-node": "^10.9.2",
|
|
50
|
-
"typescript": "^5.7.
|
|
51
|
-
"@rspack/
|
|
52
|
-
"@rspack/
|
|
50
|
+
"typescript": "^5.7.3",
|
|
51
|
+
"@rspack/tracing": "1.2.3",
|
|
52
|
+
"@rspack/core": "1.2.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@rspack/core": "^1.0.0-alpha || ^1.x",
|