@zk-tech/rrt-plugin-rspack 0.0.2 → 0.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/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,28 @@ 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>/__react-render-tracker__/standalone
52
+ ```
53
+
36
54
  ## Options
37
55
 
38
56
  - `disabled?: boolean`
39
57
  - `rendererId?: number`
58
+ - `separate?: boolean`
59
+ - `editor?: 'code' | 'webstorm' | 'idea' | 'cursor' | 'zed' | 'code-insiders'`
40
60
  - `diffMode?: 'off' | 'lite' | 'full'`
41
61
  - `updateTrace?: boolean`
42
62
  - `commitTrace?: boolean`