@zk-tech/rrt-plugin-rspack 0.0.2 → 0.0.4

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/README.md CHANGED
@@ -21,10 +21,12 @@ module.exports = {
21
21
  template: './index.html',
22
22
  }),
23
23
  new PerfMonitorRspackPlugin({
24
+ separate: false,
24
25
  diffMode: 'lite',
25
26
  updateTrace: true,
26
27
  commitTrace: true,
27
28
  // rendererId: 1,
29
+ // editor: 'cursor',
28
30
  // disabled: process.env.NODE_ENV === 'production',
29
31
  }),
30
32
  ],
@@ -33,10 +35,30 @@ module.exports = {
33
35
 
34
36
  `PerfMonitorRspackPlugin` requires `rspack.HtmlRspackPlugin` and should be placed after it.
35
37
 
38
+ ## Separate Mode
39
+
40
+ Set `separate: true` to run DevTools in a separate page.
41
+
42
+ ```js
43
+ new PerfMonitorRspackPlugin({
44
+ separate: true,
45
+ });
46
+ ```
47
+
48
+ Then open:
49
+
50
+ ```text
51
+ http://localhost:<port>/__perf-monitor-devtools__/standalone
52
+ ```
53
+
54
+ The plugin will also print this URL hint automatically when `rspack dev` starts.
55
+
36
56
  ## Options
37
57
 
38
58
  - `disabled?: boolean`
39
59
  - `rendererId?: number`
60
+ - `separate?: boolean`
61
+ - `editor?: 'code' | 'webstorm' | 'idea' | 'cursor' | 'zed' | 'code-insiders'`
40
62
  - `diffMode?: 'off' | 'lite' | 'full'`
41
63
  - `updateTrace?: boolean`
42
64
  - `commitTrace?: boolean`