@rsdoctor/docs 1.5.12 → 1.5.14-beta.0

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.
Files changed (39) hide show
  1. package/docs/en/blog/release/release-note-0_3.mdx +2 -2
  2. package/docs/en/blog/release/release-note-0_4.mdx +1 -1
  3. package/docs/en/blog/release/release-note-1_0.mdx +4 -4
  4. package/docs/en/blog/release/release-note-1_2.mdx +1 -1
  5. package/docs/en/blog/topic/duplicate-pkg-problem.mdx +1 -1
  6. package/docs/en/config/options/brief.mdx +1 -1
  7. package/docs/en/config/options/options-shared.mdx +2 -2
  8. package/docs/en/config/options/options-v2.mdx +1 -1
  9. package/docs/en/config/options/output.mdx +3 -3
  10. package/docs/en/config/options/supports.mdx +2 -2
  11. package/docs/en/guide/rules/rule-custom.mdx +1 -1
  12. package/docs/en/guide/start/cicd.mdx +3 -3
  13. package/docs/en/guide/start/quick-start-shared.mdx +1 -1
  14. package/docs/en/guide/usage/bundle-size.mdx +2 -2
  15. package/docs/en/guide/usage/compile-overall.mdx +1 -1
  16. package/docs/en/guide/usage/loaders-analysis.mdx +1 -1
  17. package/docs/en/guide/usage/mcp.mdx +1 -1
  18. package/docs/en/guide/usage/plugins-analysis.mdx +1 -1
  19. package/docs/en/shared/mode-intro.md +2 -2
  20. package/docs/zh/blog/release/release-note-0_3.mdx +2 -2
  21. package/docs/zh/blog/release/release-note-0_4.mdx +1 -1
  22. package/docs/zh/blog/release/release-note-1_0.mdx +3 -3
  23. package/docs/zh/blog/release/release-note-1_2.mdx +1 -1
  24. package/docs/zh/blog/topic/duplicate-pkg-problem.mdx +1 -1
  25. package/docs/zh/blog/topic/loader-optimization.mdx +1 -1
  26. package/docs/zh/config/options/brief.mdx +1 -1
  27. package/docs/zh/config/options/options-shared.mdx +2 -2
  28. package/docs/zh/config/options/options-v2.mdx +1 -1
  29. package/docs/zh/config/options/output.mdx +3 -3
  30. package/docs/zh/config/options/supports.mdx +2 -2
  31. package/docs/zh/guide/rules/rule-custom.mdx +1 -1
  32. package/docs/zh/guide/start/cicd.mdx +3 -3
  33. package/docs/zh/guide/usage/bundle-size.mdx +2 -2
  34. package/docs/zh/guide/usage/compile-overall.mdx +1 -1
  35. package/docs/zh/guide/usage/mcp.mdx +1 -1
  36. package/docs/zh/guide/usage/module-analysis.mdx +1 -1
  37. package/docs/zh/guide/usage/plugins-analysis.mdx +1 -1
  38. package/docs/zh/shared/mode-intro.md +2 -2
  39. package/package.json +11 -11
@@ -88,7 +88,7 @@ Both Rspack and webpack support the BannerPlugin, which is an built-in plugin th
88
88
 
89
89
  Therefore, Rsdoctor has added support for the Banner Plugin.
90
90
 
91
- Please refer to [Support for BannerPlugin](/guide/usage/bundle-size#support-for-bannerplugin)
91
+ Please refer to [Support for BannerPlugin](/guide/usage/bundle-size#-supports-bannerplugin)
92
92
 
93
93
  ## Support for ESM loader
94
94
 
@@ -99,7 +99,7 @@ Starting from Rspack@0.7.3, support for ESM Loader execution with `.js` extensio
99
99
 
100
100
  ### Support for defining port
101
101
 
102
- Support for [defining the port of Rsdoctor service](/config/options/options#port) has been added.
102
+ Support for [defining the port of Rsdoctor service](/config/options/port) has been added.
103
103
 
104
104
  - Example:
105
105
 
@@ -19,7 +19,7 @@ The new features of Rsdoctor 0.4 include:
19
19
  In Rsdoctor 0.4, a new **Brief mode** has been added, designed specifically for CI/CD scenarios. Brief mode consolidates the data report into a single HTML page, making it convenient for users to view historical build data in CI/CD and other scenarios. The main features of Brief mode are:
20
20
 
21
21
  - **Single report file**: Previously, Rsdoctor output multiple report data and `Manifest.json`, which was inconvenient for CDN upload and sharing. Brief mode outputs a single report, making it convenient for use in CI processes.
22
- - **Easy to configure**: Enable by configuring the [mode.brief](/config/options/options#mode) option in the Rsdoctor plugin.
22
+ - **Easy to configure**: Enable by configuring the [mode.brief](/config/options/mode) option in the Rsdoctor plugin.
23
23
  - **Report output**: The report will be generated in the build artifacts directory, and the output directory and filename of the Brief report can be configured.
24
24
 
25
25
  This feature greatly enhances the convenience of using Rsdoctor analysis reports in CI processes. The report can be uploaded to a CDN in the pipeline to display historical reports. [For more details, please refer to](/guide/start/cicd)
@@ -127,7 +127,7 @@ In large projects, enabling Rsdoctor can increase the overall build time. To sol
127
127
 
128
128
  This optimization effectively improves the build analysis performance of Rsdoctor, and reduces the overall analysis time by more than **20%**. In the future, we will continue to native more modules to further improve the analysis efficiency.
129
129
 
130
- This optimization can be enabled through the [enableNativePlugin](/config/options/options#enablenativeplugin) option:
130
+ This optimization can be enabled through the [enableNativePlugin](/config/options/experiments#enablenativeplugin) option:
131
131
 
132
132
  ```ts
133
133
  new RsdoctorRspackPlugin({
@@ -139,7 +139,7 @@ new RsdoctorRspackPlugin({
139
139
 
140
140
  ### 🔍 Module searching
141
141
 
142
- - **Search Module Capability**: In the `Bundle Size` page, we have added a module search function. Users can quickly locate and view the `Assets` where the module is located by entering the module name, making it more convenient to analyze the reference relationship and size of the module. [Details](/guide/usage/bundle-size#%E6%A8%A1%E5%9D%97%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD)
142
+ - **Search Module Capability**: In the `Bundle Size` page, we have added a module search function. Users can quickly locate and view the `Assets` where the module is located by entering the module name, making it more convenient to analyze the reference relationship and size of the module. [Details](/guide/usage/bundle-size#search-module)
143
143
 
144
144
  <img
145
145
  style={{ width: '80%', margin: 'auto', borderRadius: 12 }}
@@ -170,7 +170,7 @@ new RsdoctorRspackPlugin({
170
170
 
171
171
  - If you are using any tool or framework based on Rspack or webpack, you can refer to the [Quick Start](/guide/start/quick-start) to start using Rsdoctor.
172
172
  - If you are using Rsdoctor 0.4 or earlier, please note that 1.0 contains a few incompatible updates:
173
- - The `reportCodeType` and `reportDir` configuration items in the plugin configuration have been moved to [output](/config/options/options#reportcodetype).
173
+ - The `reportCodeType` and `reportDir` configuration items in the plugin configuration have been moved to [output](/config/options/output#reportcodetype).
174
174
 
175
175
  > Welcome to give a star 🌟 to the [Rsdoctor GitHub](https://github.com/web-infra-dev/rsdoctor) repository.
176
176
 
@@ -178,7 +178,7 @@ new RsdoctorRspackPlugin({
178
178
 
179
179
  - **AI powered analysis**: The build analysis data collected by Rsdoctor is very rich, but there may be a certain learning curve for new users. Therefore, we will integrate AI capabilities into Rsdoctor to help users quickly extract key information from massive data, provide intelligent optimization suggestions, and reduce the threshold of build analysis.
180
180
  - **CI proactive monitoring**: Rsdoctor will extend its capabilities in CI environments by introducing [Rsdoctor CI Action](https://github.com/web-infra-dev/rsdoctor/discussions/491), based on the existing [Bundle Diff](/guide/usage/bundle-diff) feature. This will provide automated monitoring of bundle sizes and alerts for performance issues to ensure quality.
181
- - **Further Native**: Due to the implementation of Rspack in Rust and the use of a multi-threaded architecture, the current analysis of the built-in loader of Rspack by Rsdoctor is not accurate enough. We plan to optimize the analysis mechanism based on [Rspack Native Plugin](/config/options/options#enablenativeplugin), and provide more accurate loader performance data and compilation behavior insights.
181
+ - **Further Native**: Due to the implementation of Rspack in Rust and the use of a multi-threaded architecture, the current analysis of the built-in loader of Rspack by Rsdoctor is not accurate enough. We plan to optimize the analysis mechanism based on [Rspack Native Plugin](/config/options/experiments#enablenativeplugin), and provide more accurate loader performance data and compilation behavior insights.
182
182
 
183
183
  **Finally, thank you to all the developers who have contributed to Rsdoctor ❤️**:
184
184
 
@@ -45,7 +45,7 @@ Previously, Rsdoctor's Treemap view was implemented based on webpack-bundle-anal
45
45
 
46
46
  **Rsdoctor 1.2** introduces a new classic Treemap artifact analysis view, helping developers more intuitively visualize and analyze bundle composition, Assets, and Modules proportions. You can also search for module resources, click on the module resource, and zoom in to the module area.
47
47
 
48
- > [View usage details](/guide/usage/bundle-size#bundle-treemap-graph)
48
+ > [View usage details](/guide/usage/bundle-size#-tree-map)
49
49
 
50
50
  <img
51
51
  src="https://assets.rspack.rs/others/assets/rsdoctor/treemap.gif"
@@ -28,7 +28,7 @@ Package managers provide the `dedupe` command, such as `npm/yarn/pnpm dedupe`, t
28
28
 
29
29
  Under the constraints of semver, the effectiveness of the dedupe command may not be ideal. For example, if the artifact contains dependencies `debug@4.3.4` and `debug@3.0.0`, where they are respectively depended on by `"debug": "^4"` and another package's `"debug": "^3"`.
30
30
 
31
- In this case, you can try using the `resolutions` feature of the package manager, such as pnpm's [**pnpm.overrides**](https://pnpm.io/package_json#pnpmoverrides), [**.pnpmfile.cjs**](https://pnpm.io/pnpmfile#hooksreadpackagepkg-context-pkg--promisepkg), or **yarn's resolutions**.
31
+ In this case, you can try using the `resolutions` feature of the package manager, such as pnpm's [**pnpm.overrides**](https://pnpm.io/settings#overrides), [**.pnpmfile.cjs**](https://pnpm.io/pnpmfile), or **yarn's resolutions**.
32
32
 
33
33
  The advantage of these features is that they can break free from the constraints of semver and change the version declared in `package.json` during installation to precisely control the installed version.
34
34
 
@@ -13,7 +13,7 @@ Deprecated in V2, please use [output.mode: 'brief'](/config/options/output#mode)
13
13
  Detailed configuration options for Brief mode are as follows:
14
14
 
15
15
  - **reportHtmlName:** Configures the filename of the HTML report in Brief mode. The default value is `report-rsdoctor.html`.
16
- - **writeDataJson:** (Deprecated, please use `output.options.type: ['json', 'html']`, refer to [output.options.type](/config/options/options-v2#options).) By default, Brief mode injects the analysis data directly into the HTML file, so no additional build analysis data files are generated. If you need to generate additional local JSON data files, you need to configure `writeDataJson: true`.
16
+ - **writeDataJson:** (Deprecated, please use `output.options.type: ['json', 'html']`, refer to [output.options.type](/config/options/output#options).) By default, Brief mode injects the analysis data directly into the HTML file, so no additional build analysis data files are generated. If you need to generate additional local JSON data files, you need to configure `writeDataJson: true`.
17
17
 
18
18
  ## briefType
19
19
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Type:** `Object`
4
4
 
5
- This is the options for the [RsdoctorWebpackPlugin](#rsdoctorwebpackplugin) and [RsdoctorRspackPlugin](#rsdoctorrspackplugin). It contains these properties:
5
+ This is the options for the [RsdoctorWebpackPlugin](./options#rsdoctorwebpackplugin) and [RsdoctorRspackPlugin](./options#rsdoctorrspackplugin). It contains these properties:
6
6
 
7
7
  - [disableClientServer](#disableclientserver)
8
8
  - [features](#features)
@@ -29,7 +29,7 @@ The `features` attribute is used to analyze the function switches, and the speci
29
29
  - **plugins**: Analysis of Plugins calls and time consumption, enabled by default.
30
30
  - **bundle**: Analysis of build artifacts, enabled by default.
31
31
  - **resolver**: resolver analysis, disabled by default.
32
- - **lite**: [**deprecated, please use [mode.lite](#mode)**]
32
+ - **lite**: **deprecated, please use [mode.lite](/config/options/mode)**
33
33
  lite mode. The difference between lite mode and normal mode is that source code information is no longer cached, only packaged code information is cached, so the code analyzed on the page will also be packaged. The default is normal mode.
34
34
 
35
35
  Therefore, **the default configuration enables bundle analysis capabilities and Loader and Plugin build-time analysis**. The Resolver analysis capability is not enabled, and Rspack does not currently support Resolver analysis capabilities.
@@ -37,4 +37,4 @@ The original `mode: 'lite'` and `feature: 'lite'` configurations are changed to
37
37
 
38
38
  ### output.options.jsonOptions.section
39
39
 
40
- Support for the new `output.options.jsonOptions.section` configuration for more granular JSON output option customization. For specific sections configuration items, refer to [output.options.jsonOptions.section](/config/options/output#jsonoptionssection).
40
+ Support for the new `output.options.jsonOptions.section` configuration for more granular JSON output option customization. For specific sections configuration items, refer to [output.options.jsonOptions.section](/config/options/output#options).
@@ -11,10 +11,10 @@ import { Badge } from '@theme';
11
11
  Rsdoctor report mode, default is `normal`.
12
12
 
13
13
  - **normal:** Generates a `.rsdoctor` folder in the build output directory, containing various data files and displaying code in the report page. The output directory can be configured via [reportDir](#reportdir).
14
- - **brief:** Generates an HTML report file in the `.rsdoctor` folder of the build output directory. All build analysis data is integrated and injected into this HTML file, which can be opened in a browser to view the report. Brief mode has more configuration options, see [brief](#brief) for details.
14
+ - **brief:** Generates an HTML report file in the `.rsdoctor` folder of the build output directory. All build analysis data is integrated and injected into this HTML file, which can be opened in a browser to view the report. Brief mode has more configuration options, see [mode: 'brief'](#mode-brief) for details.
15
15
 
16
16
  :::tip
17
- Mode does not have a lite configuration option. The lite mode will be deprecated. Refer to [lite mode deprecation notice](./options-v2.mdx#lite-mode-deprecation-notice).
17
+ Mode does not have a lite configuration option. The lite mode will be deprecated. Refer to [lite mode deprecation notice](./options-v2.mdx#lite).
18
18
  :::
19
19
 
20
20
  ## options
@@ -211,7 +211,7 @@ The output directory for Rsdoctor reports. By default, it is the build output di
211
211
  ## compressData
212
212
 
213
213
  :::warning
214
- Deprecated in V2, please use `output.mode: 'brief'` and `output.options.type: 'json'` instead. Refer to [compressData configuration migration](/config/options/options-v2#compressdata).
214
+ Deprecated in V2, please use `output.mode: 'brief'` and `output.options.type: 'json'` instead. Refer to [compressData configuration migration](/config/options/options-v2#outputcompressdata).
215
215
  :::
216
216
 
217
217
  - **Type:** `boolean`
@@ -2,7 +2,7 @@ import { Badge } from '@theme';
2
2
 
3
3
  # supports
4
4
 
5
- - **Type:** [Supports Types](#supports-types)
5
+ - **Type:** [Supports Types](#supportstypes)
6
6
  - **Optional:** `true`
7
7
  - **Default:** `undefined`
8
8
 
@@ -27,7 +27,7 @@ type ISupport = {
27
27
  - **Type:** `boolean`
28
28
  - **Default:** `true`
29
29
 
30
- If `supports.banner` is enabled, Rsdoctor will enable compatibility logic for BannerPlugin. For more details, please refer to: [Supports BannerPlugin](../../guide/usage/bundle-size#supports-bannerplugin)
30
+ If `supports.banner` is enabled, Rsdoctor will enable compatibility logic for BannerPlugin. For more details, please refer to: [Supports BannerPlugin](../../guide/usage/bundle-size#-supports-bannerplugin)
31
31
 
32
32
  ## ~~generateTileGraph [**Deprecated**]~~
33
33
 
@@ -252,7 +252,7 @@ report({
252
252
 
253
253
  <img src="https://assets.rspack.rs/others/assets/rsdoctor/rule-1.jpeg" />
254
254
 
255
- - Component Code [Code](https://github.com/web-infra-dev/rsdoctor/blob/main/packages/components/src/components/Alert/link.tsx)
255
+ - Component Code [Code](https://github.com/web-infra-dev/rsdoctor/blob/main/packages/components/src/components/Alerts/list.tsx)
256
256
 
257
257
  ### Code display component
258
258
 
@@ -12,11 +12,11 @@ In Brief mode, data reports are integrated into a single HTML page, making it ea
12
12
 
13
13
  <Badge text="Version: 0.4.0" type="warning" />
14
14
 
15
- You can enable Brief mode by configuring the [mode.brief](/config/options/options#mode) option in the Rsdoctor plugin. After the build, Brief mode will generate a report in the build output directory: `[outputDir]/.rsdoctor/report-rsdoctor.html`. You can view the build analysis summary by opening the HTML file in a browser.
15
+ You can enable Brief mode by configuring the [mode.brief](/config/options/mode) option in the Rsdoctor plugin. After the build, Brief mode will generate a report in the build output directory: `[outputDir]/.rsdoctor/report-rsdoctor.html`. You can view the build analysis summary by opening the HTML file in a browser.
16
16
 
17
17
  - In Brief mode, no code data is displayed to prevent the page from crashing due to large data sizes.
18
- - The report output directory and file name can be configured. Refer to: [Options](/config/options/options#brief).
19
- - For more configurations, refer to: [Options](/config/options/options#brief).
18
+ - The report output directory and file name can be configured. Refer to: [Options](/config/options/brief).
19
+ - For more configurations, refer to: [Options](/config/options/brief).
20
20
 
21
21
  ```ts title="rspack.config.js"
22
22
  const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin');
@@ -82,7 +82,7 @@ For projects using Modern.js's webpack mode, please register the `RsdoctorWebpac
82
82
 
83
83
  #### Step 1: Register the Rsdoctor plugin
84
84
 
85
- Initialize the [RsdoctorRspackPlugin](#rspack-projects)([RsdoctorWebpackPlugin](#webpack-projects)) plugin in the [Rspack Config](https://rspack.rs/guide/tech/next)([webpack config](https://nextjs.org/docs/pages/api-reference/config/next-config-js/webpack)) of `next.config.ts`.
85
+ Initialize the [RsdoctorRspackPlugin](#rspack)([RsdoctorWebpackPlugin](#webpack)) plugin in the [Rspack Config](https://rspack.rs/guide/tech/next)([webpack config](https://nextjs.org/docs/pages/api-reference/config/next-config-js/webpack)) of `next.config.ts`.
86
86
 
87
87
  import { Tab, Tabs } from '@rspress/core/theme';
88
88
 
@@ -36,7 +36,7 @@ Tree Graph is a **file tree-based** build artifact analysis view that helps deve
36
36
  ## 🪐 Glossary
37
37
 
38
38
  - **`Assets`**: Resources are files that ultimately exist in the output folder, including JavaScript, CSS, images, fonts, media, and other file types. Each Chunk has corresponding [Assets resources](https://webpack.js.org/concepts/under-the-hood/#chunks).
39
- - **`Module`**: Multiple Modules combine to form a Chunk. For more information about Module types, please refer to [Rspack Modules](https://www.rspack.rs/api/modules.html) and [Webpack Modules](https://webpack.js.org/concepts/modules/#what-is-a-webpack-module).
39
+ - **`Module`**: Multiple Modules combine to form a Chunk. For more information about Module types, please refer to [Rspack Modules](https://rspack.rs/misc/glossary#module-type) and [Webpack Modules](https://webpack.js.org/concepts/modules/#what-is-a-webpack-module).
40
40
  - **`Source Size`**: The original size of the file, before any transformations and minification.
41
41
  - **`Bundle Size`**: The final output size of the files. If you enabled minification, this value shows the minified size.
42
42
  - **`Gzip Size`**: The size of the file after gzip compression.
@@ -184,7 +184,7 @@ The **Modules** tag is shown in the right image, from left to right representing
184
184
 
185
185
  ### Support for concatenated module analysis
186
186
 
187
- **[Concatenated Module](https://rspack.rs/misc/glossary#scope-hoisting)** refers to multiple modules that are merged into a single closure, which cannot be analyzed through AST syntax analysis. However, concatenated modules may contain code from different packages, making the analysis of sub-modules within concatenated modules a key focus, especially for projects using the ["all-in-one"](https://rsbuild.rs/guide/optimization/code-splitting#all-in-one) bundling approach.
187
+ **[Concatenated Module](https://rspack.rs/misc/glossary#scope-hoisting)** refers to multiple modules that are merged into a single closure, which cannot be analyzed through AST syntax analysis. However, concatenated modules may contain code from different packages, making the analysis of sub-modules within concatenated modules a key focus, especially for projects with [chunk splitting disabled](https://rsbuild.rs/config/split-chunks#disable-chunk-splitting).
188
188
 
189
189
  Rsdoctor supports the analyze of **[Concatenated Module](https://rspack.rs/misc/glossary#scope-hoisting)** and accurately calculates the real bundled size of sub-modules within concatenated modules, helping developers accurately identify the actual build size after Tree Shaking, analyze the impact of merged modules on final bundle size, and optimize code splitting strategies.
190
190
 
@@ -111,5 +111,5 @@ The content in the popup has similar meanings to the previous paragraphs, so it
111
111
 
112
112
  ## Reference documentation
113
113
 
114
- - [**Rspack Hooks**](https://www.rspack.rs/api/plugin-api.html#beforecompile)
114
+ - [**Rspack Hooks**](https://rspack.rs/api/plugin-api/compiler-hooks#beforecompile)
115
115
  - [**Webpack Hooks**](https://webpack.js.org/api/compilation-hooks/)
@@ -25,7 +25,7 @@ The corresponding details will be explained in the following paragraphs.
25
25
 
26
26
  ## Loader data for file directories
27
27
 
28
- By **clicking on a selected directory**, you can see the **time statistics of all Loaders in the selected directory** ([estimated time consumption](../../guide/more/faq#loader-time-consuming-data-is-inaccurate)) on the right side of the file tree. The content of the "Statistics of \*\*\*" card is shown in the following image:
28
+ By **clicking on a selected directory**, you can see the **time statistics of all Loaders in the selected directory** ([estimated time consumption](../../guide/more/faq#loader-timing-data-is-inaccurate)) on the right side of the file tree. The content of the "Statistics of \*\*\*" card is shown in the following image:
29
29
 
30
30
  <img
31
31
  src="https://assets.rspack.rs/others/assets/rsdoctor/loader-analysis-table.png"
@@ -175,7 +175,7 @@ RSDOCTOR=true npm run build
175
175
  }
176
176
  ```
177
177
 
178
- 2. In the Copilot Chat view, select [Agent mode](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_use-agent-mode), then start interacting.
178
+ 2. In the Copilot Chat view, select [Agent mode](https://code.visualstudio.com/docs/agents/overview#_choose-an-agent), then start interacting.
179
179
 
180
180
  #### Claude
181
181
 
@@ -39,5 +39,5 @@ If we need to view the Rspack or webpack configuration of the project, we can cl
39
39
 
40
40
  ## Reference documentation
41
41
 
42
- - [**Rspack Hooks**](https://www.rspack.rs/api/plugin-api.html#beforecompile)
42
+ - [**Rspack Hooks**](https://rspack.rs/api/plugin-api/compiler-hooks#beforecompile)
43
43
  - [**Webpack Hooks**](https://webpack.js.org/api/compilation-hooks/)
@@ -1,6 +1,6 @@
1
- - **normal mode:** Generates a `.rsdoctor` folder in the build output directory, which contains various data files and displays code in the report page. The output directory can be configured via [reportDir](/config/options/options#reportdir).
1
+ - **normal mode:** Generates a `.rsdoctor` folder in the build output directory, which contains various data files and displays code in the report page. The output directory can be configured via [reportDir](/config/options/output#reportdir).
2
2
 
3
- - **brief mode:** Generates an HTML report file in the `.rsdoctor` folder within the build output directory. All build analysis data will be consolidated and injected into this HTML file, which can be viewed by opening it in a browser. Brief mode also has additional configuration options, detailed at: [brief](/config/options/options#brief).
3
+ - **brief mode:** Generates an HTML report file in the `.rsdoctor` folder within the build output directory. All build analysis data will be consolidated and injected into this HTML file, which can be viewed by opening it in a browser. Brief mode also has additional configuration options, detailed at: [brief](/config/options/brief).
4
4
 
5
5
  - **lite mode:** Based on the normal mode, this mode does not display source code and product code, only showing the information of the bundled code.
6
6
  - lite mode will be deprecated in V2, refer to [lite mode deprecation notice](/config/options/options-v2#lite).
@@ -83,7 +83,7 @@ export default {
83
83
 
84
84
  由于 Rspack 和 webpack 都支持 BannerPlugin,且 BannerPlugin 可在生成的 chunk 顶部或尾部添加指定内容的代码段,这会影响到对 Bundle 的解析能力。因此,Rsdoctor 增加了 Banner Plugin 的支持。
85
85
 
86
- 详情请查看[支持 BannerPlugin](/guide/usage/bundle-size#%E6%94%AF%E6%8C%81-bannerplugin)
86
+ 详情请查看[支持 BannerPlugin](/guide/usage/bundle-size#-%E6%94%AF%E6%8C%81-bannerplugin)
87
87
 
88
88
  ### 支持 ESM loader
89
89
 
@@ -94,7 +94,7 @@ export default {
94
94
 
95
95
  ## 支持 port 定义
96
96
 
97
- Rsdoctor 新增了配置服务端口的能力。[详情请参阅](/config/options/options#port)。
97
+ Rsdoctor 新增了配置服务端口的能力。[详情请参阅](/config/options/port)。
98
98
 
99
99
  - 示例:
100
100
 
@@ -19,7 +19,7 @@ Rsdoctor 0.4 的新特性有:
19
19
  在 Rsdoctor 0.4 中,新增了 **Brief 模式**,专为 CI/CD 场景设计。Brief 模式将数据报告整合到一个 HTML 页面中,方便用户在 CI/CD 及其他场景下查看历史构建数据。以下是 Brief 模式的主要特点:
20
20
 
21
21
  - **单个报告文件**:之前 Rsdoctor 输出的多个报告数据与 `Manifest.json`,不方便进行 CDN 上传和共享,Brief 模式输出单一报告方便 CI 流程中使用。
22
- - **易于配置**:通过配置 Rsdoctor 插件的 [mode.brief](/config/options/options#mode) 选项即可开启 Brief 模式。
22
+ - **易于配置**:通过配置 Rsdoctor 插件的 [mode.brief](/config/options/mode) 选项即可开启 Brief 模式。
23
23
  - **报告输出**:报告会生成在构建产物目录中,同时可配置 Brief 报告生成目录和文件名。
24
24
 
25
25
  此功能极大地提升了在 CI 流程中使用 Rsdoctor 分析报告的便捷性,可以在 Pipeline 中将报告上传到 CDN 以便展示历史报告。[详情请参阅](/guide/start/cicd)
@@ -125,7 +125,7 @@ Rsdoctor 提供了丰富的功能,详细内容可参考 [功能导航](/guide/
125
125
 
126
126
  在大型项目中,启用 Rsdoctor 会导致整体构建时间增加。为解决这一问题,我们将 Rsdoctor 中耗时较长的数据处理逻辑使用 Rust 重写,并集成到 Rspack 中。这一优化有效提升了 Rsdoctor 的构建分析性能,整体分析时间减少了 20% 以上。后续我们将继续将更多模块原生化来进一步提升分析效率。
127
127
 
128
- 这一优化可以通过 [enableNativePlugin](/config/options/options#enablenativeplugin) 选项开启:
128
+ 这一优化可以通过 [enableNativePlugin](/config/options/experiments#enablenativeplugin) 选项开启:
129
129
 
130
130
  ```ts
131
131
  new RsdoctorRspackPlugin({
@@ -168,7 +168,7 @@ new RsdoctorRspackPlugin({
168
168
 
169
169
  - 如果你在使用任何基于 Rspack 或 webpack 的工具或框架,可以参考 [快速开始](/guide/start/quick-start) 来开始使用 Rsdoctor。
170
170
  - 如果你在使用 Rsdoctor 0.4 或更早的版本,请留意 1.0 包含少量不兼容更新:
171
- - 插件配置中的 `reportCodeType` 和 `reportDir` 配置项移动到 [output](/config/options/options#reportcodetype) 下。
171
+ - 插件配置中的 `reportCodeType` 和 `reportDir` 配置项移动到 [output](/config/options/output#reportcodetype) 下。
172
172
 
173
173
  > 欢迎为 [Rsdoctor GitHub](https://github.com/web-infra-dev/rsdoctor) 仓库点亮一颗 Star 🌟。
174
174
 
@@ -176,7 +176,7 @@ new RsdoctorRspackPlugin({
176
176
 
177
177
  - **AI 智能分析**:Rsdoctor 收集的构建分析数据非常丰富,但对新用户而言可能存在一定的学习成本。为此,我们将整合 AI 能力到 Rsdoctor 中,帮助用户从海量数据中快速提取关键信息,提供智能优化建议,从而降低构建分析的门槛。
178
178
  - **CI 主动防劣化**:基于现有的 [Bundle Diff](/guide/usage/bundle-diff) 功能,Rsdoctor 将拓展 CI 环境下的主动防劣化能力,推出 [Rsdoctor CI Action](https://github.com/web-infra-dev/rsdoctor/discussions/491),实现自动化的产物体积监控和性能劣化预警,为工程质量提供保障。
179
- - **进一步原生化**:由于 Rspack 基于 Rust 实现且采用多线程架构,当前 Rsdoctor 对 Rspack 内置 loader 的分析不够精确。我们计划在 [Rspack Native Plugin](/config/options/options#enablenativeplugin) 的基础上优化分析机制,提供更准确的 loader 性能数据和编译行为洞察。
179
+ - **进一步原生化**:由于 Rspack 基于 Rust 实现且采用多线程架构,当前 Rsdoctor 对 Rspack 内置 loader 的分析不够精确。我们计划在 [Rspack Native Plugin](/config/options/experiments#enablenativeplugin) 的基础上优化分析机制,提供更准确的 loader 性能数据和编译行为洞察。
180
180
 
181
181
  **最后,感谢所有为 Rsdoctor 贡献过的开发者 ❤️**:
182
182
 
@@ -45,7 +45,7 @@ Rsdoctor 1.2 版本已经发布啦 🎉
45
45
 
46
46
  **Rsdoctor 1.2 版本**新增了 Treemap 视图,是一种经典的构建产物分析视图,能帮助开发者更直观地可视化并分析 bundle 的构成,以及资源(Assets)和模块(Modules)的占比。同时也可以搜索模块资源,点击模块资源,可以放大到该模块区域。
47
47
 
48
- > [查看使用详情](/guide/usage/bundle-size#%E4%BA%A7%E7%89%A9%E6%80%BB%E8%A7%88%E7%93%A6%E7%89%87%E5%9B%BE)
48
+ > [查看使用详情](/guide/usage/bundle-size#-tree-map)
49
49
 
50
50
  <img
51
51
  src="https://assets.rspack.rs/others/assets/rsdoctor/treemap.gif"
@@ -28,7 +28,7 @@ Rsdoctor 会在产物预警中报告对同一份产物中含有多个重复依
28
28
 
29
29
  在 semver 的限制下,dedupe 命令的效果可能不是特别好。比如产物中包含的依赖为 `debug@4.3.4` 和 `debug@3.0.0` 它们分别被 `"debug": "^4"` 和另一个包的 `"debug": "^3"` 所依赖。
30
30
 
31
- 这时可以尝试使用包管理器的 `resolutions` 的功能,如 pnpm 的 [**pnpm.overrides**](https://pnpm.io/package_json#pnpmoverrides)、[**.pnpmfile.cjs**](https://pnpm.io/pnpmfile#hooksreadpackagepkg-context-pkg--promisepkg) 或 **yarn 的 resolutions** 等功能
31
+ 这时可以尝试使用包管理器的 `resolutions` 的功能,如 pnpm 的 [**pnpm.overrides**](https://pnpm.io/settings#overrides)、[**.pnpmfile.cjs**](https://pnpm.io/pnpmfile) 或 **yarn 的 resolutions** 等功能
32
32
  。它们的特点是可以突破 semver 的束缚,安装时改变 `package.json` 中声明的版本号,来精确控制安装的版本。
33
33
 
34
34
  但在使用前需要注意包版本之间的兼容性,评估是否有必要进行优化。例如:同一个包不同版本之间的逻辑变化是否会影响项目功能。
@@ -23,7 +23,7 @@ import Step from '@components/Step';
23
23
 
24
24
  ### 分析目录
25
25
 
26
- 通过 **点击选中目录** 可以在**文件树**的右侧,看到当前**选中目录下所有 Loader 的耗时统计数据**([**预估耗时**]()),即 `"Statistics of ***"` 的卡片内容如下图所示:
26
+ 通过 **点击选中目录** 可以在**文件树**的右侧,看到当前**选中目录下所有 Loader 的耗时统计数据**([**预估耗时**](/guide/more/faq#loader-%E8%80%97%E6%97%B6%E6%95%B0%E6%8D%AE%E4%B8%8D%E5%87%86)),即 `"Statistics of ***"` 的卡片内容如下图所示:
27
27
 
28
28
  <img
29
29
  src="https://assets.rspack.rs/others/assets/rsdoctor/loader-analysis-table.png"
@@ -13,7 +13,7 @@ V2 中即将废弃,请使用 [output.mode: 'brief'](/config/options/output#mod
13
13
  Brief 模式的详细配置选项如下:
14
14
 
15
15
  - **reportHtmlName:** 配置 Brief 模式下 HTML 报告的文件名称,默认值为 `report-rsdoctor.html`。
16
- - **writeDataJson:** (已废弃,请使用 `output.options.type: ['json', 'html']`, 参考 [output.options.type](/config/options/options-v2#options)。)默认情况下,Brief 模式会将分析数据直接注入到 HTML 文件中,因此不会额外生成构建分析数据文件。如果需要额外在本地生成 JSON 数据文件,则需要配置 `writeDataJson: true`。
16
+ - **writeDataJson:** (已废弃,请使用 `output.options.type: ['json', 'html']`, 参考 [output.options.type](/config/options/output#options)。)默认情况下,Brief 模式会将分析数据直接注入到 HTML 文件中,因此不会额外生成构建分析数据文件。如果需要额外在本地生成 JSON 数据文件,则需要配置 `writeDataJson: true`。
17
17
 
18
18
  ## briefType
19
19
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  **类型:** `Object`
4
4
 
5
- 这个 `Options` 是 [RsdoctorWebpackPlugin](#rsdoctorwebpackplugin-%E6%8F%92%E4%BB%B6) 和 [RsdoctorRspackPlugin](#rsdoctorrspackplugin-%E6%8F%92%E4%BB%B6) 的配置项。它包含以下属性值:
5
+ 这个 `Options` 是 [RsdoctorWebpackPlugin](./options#rsdoctorwebpackplugin-%E6%8F%92%E4%BB%B6) 和 [RsdoctorRspackPlugin](./options#rsdoctorrspackplugin-%E6%8F%92%E4%BB%B6) 的配置项。它包含以下属性值:
6
6
 
7
7
  - [disableClientServer](#disableclientserver)
8
8
  - [features](#features)
@@ -33,7 +33,7 @@ features 属性是用于分析功能开关的,具体的功能项如下:
33
33
  - **plugins**:Plugins 调用以及耗时分析,默认开启。
34
34
  - **bundle**:构建产物分析,默认开启。
35
35
  - **resolver**:resolver 分析,默认关闭。
36
- - **lite**: **(废弃,参考:[mode.lite]())** lite 模式。lite 模式和普通模式的区别就是不再缓存源码信息,只缓存打包后的代码信息,这样分析页面上的代码也将是打包后的。默认普通模式。
36
+ - **lite**: **(废弃,参考:[mode.lite](/config/options/mode))** lite 模式。lite 模式和普通模式的区别就是不再缓存源码信息,只缓存打包后的代码信息,这样分析页面上的代码也将是打包后的。默认普通模式。
37
37
 
38
38
  所以,**默认配置是开启了 Bundle 分析能力、 Loader 和 Plugin 构建时分析**。没有开启 Resolver 分析能力, Rspack 暂不支持 Resolver 分析能力。
39
39
 
@@ -37,4 +37,4 @@ lite 模式的内部逻辑等同于 `output.options.reportCodeType` 为 `noCode`
37
37
 
38
38
  ### 新增 output.options.jsonOptions.section
39
39
 
40
- 支持新增的 `output.options.jsonOptions.section` 配置,用于更细粒度的 JSON 输出选项定制。具体 sections 配置项参考[output.options.jsonOptions.section](/config/options/output#jsonoptionssection)。
40
+ 支持新增的 `output.options.jsonOptions.section` 配置,用于更细粒度的 JSON 输出选项定制。具体 sections 配置项参考[output.options.jsonOptions.section](/config/options/output#options)。
@@ -11,10 +11,10 @@ import { Badge } from '@theme';
11
11
  Rsdoctor 报告模式,默认是 `normal`。
12
12
 
13
13
  - **normal:** 在构建产物目录中生成一个 `.rsdoctor` 文件夹,其中包含各种数据文件,并在报告页面中展示代码。输出目录可以通过 [reportDir](#reportdir) 进行配置。
14
- - **brief:** 在构建产物目录的 `.rsdoctor` 文件夹中生成一个 HTML 报告文件,所有构建分析数据会整合注入到这个 HTML 文件中,可以通过浏览器打开该 HTML 文件查看报告。brief 模式还有更多配置项,详细信息请参阅:[brief](#brief)。
14
+ - **brief:** 在构建产物目录的 `.rsdoctor` 文件夹中生成一个 HTML 报告文件,所有构建分析数据会整合注入到这个 HTML 文件中,可以通过浏览器打开该 HTML 文件查看报告。brief 模式还有更多配置项,详细信息请参阅:[mode: 'brief'](#mode-brief)。
15
15
 
16
16
  :::tip
17
- mode 是没有 lite 配置项的,lite 模式即将废弃,参考 [lite 模式废弃说明](./options-v2.mdx#lite-模式废弃说明)。
17
+ mode 是没有 lite 配置项的,lite 模式即将废弃,参考 [lite 模式废弃说明](./options-v2.mdx#lite)。
18
18
  :::
19
19
 
20
20
  ## options
@@ -208,7 +208,7 @@ Rsdoctor 报告输出目录,默认是构建产物输出目录。
208
208
  ## compressData
209
209
 
210
210
  :::warning
211
- V2 中即将废弃,请使用 `output.mode: 'brief'` 和 `output.options.type: 'json'` 代替。参考 [compressData 配置迁移](/config/options/options-v2#compressdata)。
211
+ V2 中即将废弃,请使用 `output.mode: 'brief'` 和 `output.options.type: 'json'` 代替。参考 [compressData 配置迁移](/config/options/options-v2#outputcompressdata)。
212
212
  :::
213
213
 
214
214
  - **类型:** `boolean`
@@ -2,7 +2,7 @@ import { Badge } from '@theme';
2
2
 
3
3
  # supports
4
4
 
5
- - **类型:** [Supports Types](#supports-types)
5
+ - **类型:** [Supports Types](#supportstypes)
6
6
  - **可选:** `true`
7
7
  - **默认值:** `undefined`
8
8
 
@@ -27,7 +27,7 @@ type ISupport = {
27
27
  - **类型:** `boolean`
28
28
  - **默认值:** `true`
29
29
 
30
- 如果开启 `supports.banner` 则会开启 Rsdoctor 对 BannerPlugin 的兼容逻辑。详细请看:[支持 BannerPlugin](../../guide/usage/bundle-size#%E6%94%AF%E6%8C%81-bannerplugin)
30
+ 如果开启 `supports.banner` 则会开启 Rsdoctor 对 BannerPlugin 的兼容逻辑。详细请看:[支持 BannerPlugin](../../guide/usage/bundle-size#-%E6%94%AF%E6%8C%81-bannerplugin)
31
31
 
32
32
  ## ~~generateTileGraph [**Deprecated**]~~
33
33
 
@@ -253,7 +253,7 @@ report({
253
253
 
254
254
  <img src="https://assets.rspack.rs/others/assets/rsdoctor/rule-1.jpeg" />
255
255
 
256
- - 组件代码 [Code](https://github.com/web-infra-dev/rsdoctor/blob/main/packages/components/src/components/Alert/link.tsx)
256
+ - 组件代码 [Code](https://github.com/web-infra-dev/rsdoctor/blob/main/packages/components/src/components/Alerts/list.tsx)
257
257
 
258
258
  ### 代码展示组件
259
259
 
@@ -12,12 +12,12 @@ Brief 模式中,会将数据报告整合到一个 HTML 页面中,方便用
12
12
 
13
13
  <Badge text="Version: 0.4.0" type="warning" />
14
14
 
15
- 通过配置 Rsdoctor 插件的 [mode.brief](/config/options/options#mode) 选项,即可开启 Brief 模式。Brief 模式会在构建后生成一份报告到构建产物目录中: `[outputDir]/.rsdoctor/report-rsdoctor.html`,通过浏览器打开 HTML 文件,
15
+ 通过配置 Rsdoctor 插件的 [mode.brief](/config/options/mode) 选项,即可开启 Brief 模式。Brief 模式会在构建后生成一份报告到构建产物目录中: `[outputDir]/.rsdoctor/report-rsdoctor.html`,通过浏览器打开 HTML 文件,
16
16
  即可看到构建分析简报。
17
17
 
18
18
  - Brief 模式下是不展示任何的代码数据的,为了防止数据过大导致页面崩溃。
19
- - 报告输出的目录和文件名可配置,可参考:[Options](/config/options/options#brief)。
20
- - 更多配置可参考:[Options](/config/options/options#brief)。
19
+ - 报告输出的目录和文件名可配置,可参考:[Options](/config/options/brief)。
20
+ - 更多配置可参考:[Options](/config/options/brief)。
21
21
 
22
22
  ```ts title="rspack.config.js"
23
23
  const { RsdoctorRspackPlugin } = require('@rsdoctor/rspack-plugin');
@@ -36,7 +36,7 @@ Tree Graph 是一种**基于文件树形式**的构建产物分析视图,能
36
36
  ## 🪐 名词解释
37
37
 
38
38
  - **`Assets`**:资源是最终存在于输出文件夹内的文件,包括 JavaScript、CSS、图像、字体、媒体等文件类型。每个 Chunk 都有对应的 [Assets 资源](https://webpack.js.org/concepts/under-the-hood/#chunks)。
39
- - **`Module`**:多个 Module 组合成了 Chunk。有关 Module 类型的详细信息,请参阅 [Rspack Modules](https://www.rspack.rs/api/modules.html) 和 [Webpack Modules](https://webpack.js.org/concepts/modules/#what-is-a-webpack-module)。
39
+ - **`Module`**:多个 Module 组合成了 Chunk。有关 Module 类型的详细信息,请参阅 [Rspack Modules](https://rspack.rs/misc/glossary#module-type) 和 [Webpack Modules](https://webpack.js.org/concepts/modules/#what-is-a-webpack-module)。
40
40
  - **`Source Size`**:文件的原始大小,未经过任何转换和压缩。
41
41
  - **`Bundle Size`**:文件最终输出的大小。如果开启了压缩,这个值代表压缩后的大小。
42
42
  - **`Gzip Size`**:文件经过 gzip 压缩后的大小。
@@ -184,7 +184,7 @@ Tree Graph 是一种**基于文件树形式**的构建产物分析视图,用
184
184
 
185
185
  ### 支持 concatenated module 分析
186
186
 
187
- **[Concatenated Module](https://rspack.rs/zh/misc/glossary#scope-hoisting-%E4%BD%9C%E7%94%A8%E5%9F%9F%E5%90%88%E5%B9%B6)** 是多个 Modules 被合并在了一个闭包中,无法通过 AST 语法分析拆解。但 concatenated module 中可能包含不同 Package 的代码,分析 concatenated module 内部子 Modules 也成为了重点,尤其是采用 ["all-in-one"](https://rsbuild.rs/guide/optimization/code-splitting#all-in-one) 方式打包的项目。
187
+ **[Concatenated Module](https://rspack.rs/zh/misc/glossary#scope-hoisting-%E4%BD%9C%E7%94%A8%E5%9F%9F%E5%90%88%E5%B9%B6)** 是多个 Modules 被合并在了一个闭包中,无法通过 AST 语法分析拆解。但 concatenated module 中可能包含不同 Package 的代码,分析 concatenated module 内部子 Modules 也成为了重点,尤其是采用 [关闭 chunk splitting](https://rsbuild.rs/config/split-chunks#disable-chunk-splitting) 方式打包的项目。
188
188
 
189
189
  Rsdoctor 支持了对 **[Concatenated Module](https://rspack.rs/zh/misc/glossary#scope-hoisting-%E4%BD%9C%E7%94%A8%E5%9F%9F%E5%90%88%E5%B9%B6)** 的拆解并精确计算 concatenated module 中子 modules 的真实的打包后的体积,帮助开发者准确识别 Tree Shaking 后的实际构建体积,分析合并模块对最终 bundle 大小的影响以及优化分包策略。
190
190
 
@@ -111,5 +111,5 @@ Rspack 项目中暂时获取不到 Minify 耗时详情。
111
111
 
112
112
  ## 参考文档
113
113
 
114
- - [**Rspack Hooks**](https://www.rspack.rs/api/plugin-api.html#beforecompile)
114
+ - [**Rspack Hooks**](https://rspack.rs/api/plugin-api/compiler-hooks#beforecompile)
115
115
  - [**Webpack Hooks**](https://webpack.js.org/api/compilation-hooks/)
@@ -175,7 +175,7 @@ RSDOCTOR=true npm run build
175
175
  }
176
176
  ```
177
177
 
178
- 2. 在 Copilot Chat 面板中选择 [Agent 模式](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_use-agent-mode),然后开始交互。
178
+ 2. 在 Copilot Chat 面板中选择 [Agent 模式](https://code.visualstudio.com/docs/agents/overview#_choose-an-agent),然后开始交互。
179
179
 
180
180
  #### Claude
181
181
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  - `Concatenated`标签:
44
44
  - `Concatenated` 标签标识该模块是被串联的子模块,`hover` 上去就可以看到被聚合到了哪个主模块中。这种聚合模块无法继续拆解打包后的代码,因此无法得知具体的 `Bundled Size`,只能得知整个串联模块的大小。
45
- - 名词解释:串联模块是将多个模块在打包时提升或串联到一个闭包中。 `Concatenated Module` 的解释可以查看[名词解释](/guide/usage/bundle-size#%E5%90%8D%E8%AF%8D%E8%A7%A3%E9%87%8A)。
45
+ - 名词解释:串联模块是将多个模块在打包时提升或串联到一个闭包中。 `Concatenated Module` 的解释可以查看[名词解释](/guide/usage/bundle-size#-%E5%90%8D%E8%AF%8D%E8%A7%A3%E9%87%8A)。
46
46
 
47
47
  - `!` 标签,`hover` 上去可以展示模块详细路径.
48
48
 
@@ -39,5 +39,5 @@ plugin 耗时中会计算 Rsdoctor 的内部插件耗时。
39
39
 
40
40
  ## 参考文档
41
41
 
42
- - [**Rspack Hooks**](https://www.rspack.rs/api/plugin-api.html#beforecompile)
42
+ - [**Rspack Hooks**](https://rspack.rs/api/plugin-api/compiler-hooks#beforecompile)
43
43
  - [**Webpack Hooks**](https://webpack.js.org/api/compilation-hooks/)
@@ -1,6 +1,6 @@
1
- - **normal 模式:** 在构建产物目录中生成一个 `.rsdoctor` 文件夹,其中包含各种数据文件,并在报告页面中展示代码。输出目录可以通过 [reportDir](/config/options/options#reportdir) 进行配置。
1
+ - **normal 模式:** 在构建产物目录中生成一个 `.rsdoctor` 文件夹,其中包含各种数据文件,并在报告页面中展示代码。输出目录可以通过 [reportDir](/config/options/output#reportdir) 进行配置。
2
2
 
3
- - **brief 模式:** 在构建产物目录的 `.rsdoctor` 文件夹中生成一个 HTML 报告文件,所有构建分析数据会整合注入到这个 HTML 文件中,可以通过浏览器打开该 HTML 文件查看报告。brief 模式还有更多配置项,详细信息请参阅:[brief](/config/options/options#brief).
3
+ - **brief 模式:** 在构建产物目录的 `.rsdoctor` 文件夹中生成一个 HTML 报告文件,所有构建分析数据会整合注入到这个 HTML 文件中,可以通过浏览器打开该 HTML 文件查看报告。brief 模式还有更多配置项,详细信息请参阅:[brief](/config/options/brief).
4
4
 
5
5
  - **lite 模式:** 基于普通模式,不展示源码和产物代码,仅显示打包后的代码信息。
6
6
  - lite 模式即将在 V2 废弃,参考 [lite 模式废弃说明](/config/options/options-v2#lite)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/docs",
3
- "version": "1.5.12",
3
+ "version": "1.5.14-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -19,29 +19,29 @@
19
19
  "registry": "https://registry.npmjs.org/"
20
20
  },
21
21
  "devDependencies": {
22
- "@rspress/plugin-algolia": "2.0.11",
23
- "@rspress/plugin-client-redirects": "2.0.11",
22
+ "@rspress/plugin-algolia": "2.0.13",
23
+ "@rspress/plugin-client-redirects": "2.0.13",
24
24
  "@rspress/plugin-rss": "2.0.5",
25
25
  "@types/node": "^24.12.3",
26
- "@types/react": "^19.2.14",
26
+ "@types/react": "^19.2.15",
27
27
  "@types/react-dom": "^19.2.3",
28
28
  "cross-env": "^10.1.0",
29
29
  "react": "19.2.6",
30
30
  "react-dom": "19.2.6",
31
31
  "react-render-to-markdown": "^19.0.1",
32
- "rsbuild-plugin-google-analytics": "^1.0.5",
33
- "rsbuild-plugin-open-graph": "^1.1.2",
34
- "rspress-plugin-font-open-sans": "^1.0.3",
32
+ "rsbuild-plugin-google-analytics": "^1.0.6",
33
+ "rsbuild-plugin-open-graph": "^1.1.3",
34
+ "rspress-plugin-font-open-sans": "^1.0.4",
35
35
  "rspress-plugin-sitemap": "^1.2.1",
36
36
  "typescript": "^6.0.3",
37
- "@rsbuild/plugin-sass": "^1.5.2",
38
- "@rsdoctor/types": "1.5.12"
37
+ "@rsbuild/plugin-sass": "^1.5.3",
38
+ "@rsdoctor/types": "1.5.14-beta.0"
39
39
  },
40
40
  "dependencies": {
41
- "@rstack-dev/doc-ui": "1.13.3",
41
+ "@rstack-dev/doc-ui": "1.14.3",
42
42
  "clsx": "^2.1.1",
43
43
  "react-markdown": "^9.1.0",
44
- "@rspress/core": "2.0.11"
44
+ "@rspress/core": "2.0.13"
45
45
  },
46
46
  "scripts": {
47
47
  "dev": "cross-env RSPRESS_PERSIST_CACHE=false rspress dev",