@rspack/cli 2.0.1 → 2.0.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/exit-hook.js +35 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1312 -1
- package/dist/json-ext.js +203 -769
- package/dist/profile.js +1 -1
- package/package.json +7 -6
- package/dist/162.js +0 -1301
package/dist/profile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import node_fs from "node:fs";
|
|
2
2
|
import node_path from "node:path";
|
|
3
3
|
import { rspack } from "@rspack/core";
|
|
4
|
-
const DEFAULT_RUST_TRACE_LAYER = '
|
|
4
|
+
const DEFAULT_RUST_TRACE_LAYER = 'logger';
|
|
5
5
|
async function applyProfile(filterValue, traceLayer = DEFAULT_RUST_TRACE_LAYER, traceOutput) {
|
|
6
6
|
const { asyncExitHook } = await import("./exit-hook.js");
|
|
7
7
|
if ('logger' !== traceLayer && 'perfetto' !== traceLayer) throw new Error(`unsupported trace layer: ${traceLayer}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -28,20 +28,21 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@discoveryjs/json-ext": "^
|
|
31
|
+
"@discoveryjs/json-ext": "^1.1.0",
|
|
32
32
|
"@microsoft/api-extractor": "^7.58.7",
|
|
33
|
-
"@rslib/core": "0.21.
|
|
33
|
+
"@rslib/core": "^0.21.4",
|
|
34
34
|
"@rspack/dev-server": "^2.0.1",
|
|
35
35
|
"cac": "^7.0.0",
|
|
36
36
|
"concat-stream": "^2.0.0",
|
|
37
37
|
"cross-env": "^10.1.0",
|
|
38
38
|
"execa": "^5.1.1",
|
|
39
|
-
"exit-hook": "^
|
|
39
|
+
"exit-hook": "^5.1.0",
|
|
40
40
|
"jiti": "^2.6.1",
|
|
41
41
|
"prebundle": "^1.6.4",
|
|
42
|
+
"rspack-merge": "0.1.1",
|
|
42
43
|
"typescript": "^6.0.3",
|
|
43
|
-
"@rspack/core": "2.0.
|
|
44
|
-
"@rspack/test-tools": "2.0.
|
|
44
|
+
"@rspack/core": "2.0.3",
|
|
45
|
+
"@rspack/test-tools": "2.0.3"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"@rspack/core": "^2.0.0-0",
|