@rsdoctor/docs 1.1.4 → 1.1.5

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.
@@ -295,18 +295,11 @@ type ISupport = {
295
295
 
296
296
  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)
297
297
 
298
- #### generateTileGraph
298
+ #### ~~generateTileGraph [**Deprecated**]~~
299
299
 
300
- - default: true. The default value in rspack is false.
301
- - type: boolean.
302
-
303
- Whether to enable the ability to generate tile graphs, which affects whether the Bundle Size page has a tile graph from `webpack-bundle-analyzer`.
300
+ <Badge text="Deprecated" type="warning" />
304
301
 
305
- <img
306
- src="https://assets.rspack.rs/others/assets/rsdoctor/bundle-size-tile-graph.png"
307
- width="500px"
308
- style={{ margin: 'auto' }}
309
- />
302
+ Rsdoctor supports generating Tree Map graphs by default, so this option does not need to be configured.
310
303
 
311
304
  #### parseBundle
312
305
 
@@ -128,12 +128,20 @@ The **Modules** tag is shown in the right image, from left to right representing
128
128
  - **Module Explorer** tag: Click to open the dependency analysis page between `Modules`.
129
129
  - **Code View** tag: Click to expand code segments, including `Source` (source code), `Transformed` (compiled code), and `Bundled` (bundled code).
130
130
 
131
- ## Bundle overview tile graph
131
+ ## Bundle tile graph
132
132
 
133
- Click the **"Bundle Analyzer Graph"** button on the **"Bundle Size"** page to view the classic tile graph.
133
+ Click the **"Tile Graph"** label on the **"Bundle Size"** page to view the tile graph. The tile graph clearly shows the proportion and relationship between resources and modules, as shown in the following image:
134
134
 
135
135
  <img
136
- src="https://assets.rspack.rs/others/assets/rsdoctor/bundle-size-tile-graph.png"
136
+ src="https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/docs/usage/bundle/treemap.png"
137
+ width="500px"
138
+ style={{ margin: 'auto' }}
139
+ />
140
+
141
+ You can also click the 🔍 button on the card title to search for Module resources, click the Module resource, and zoom in to the Module area, as shown in the following image:
142
+
143
+ <img
144
+ src="https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/docs/usage/bundle/treemap.gif"
137
145
  width="500px"
138
146
  style={{ margin: 'auto' }}
139
147
  />
@@ -294,18 +294,12 @@ type ISupport = {
294
294
 
295
295
  如果开启 `supports.banner` 则会开启 Rsdoctor 对 BannerPlugin 的兼容逻辑。详细请看:[支持 BannerPlugin](../../guide/usage/bundle-size#%E6%94%AF%E6%8C%81-bannerplugin)
296
296
 
297
- #### generateTileGraph
297
+ #### ~~generateTileGraph [**Deprecated**]~~
298
298
 
299
- - **默认值:** 使用 Rspack 时默认值是 `false`,否则为 `true`
300
- - **类型:** `boolean`
299
+ <Badge text="Deprecated" type="warning" />
301
300
 
302
- 是否开启生成瓦片图的能力,影响是 Bundle Size 页面中是否有 `webpack-bundle-analyzer` 的瓦片图。
301
+ Rsdoctor 默认支持生成 Tree Map 图,所以不需要配置此选项。
303
302
 
304
- <img
305
- src="https://assets.rspack.rs/others/assets/rsdoctor/bundle-size-tile-graph.png"
306
- width="500px"
307
- style={{ margin: 'auto' }}
308
- />
309
303
  #### parseBundle
310
304
 
311
305
  - **类型:** `boolean`
@@ -121,10 +121,18 @@
121
121
 
122
122
  ## 产物总览瓦片图
123
123
 
124
- 点击 **「Bundle Size」** 页面的 **「Bundle Analyzer Graph」** 按钮,可以查看经典的瓦片图。
124
+ 点击 **「Bundle Size」** 页面的 **「Tile Graph」** 标签,可以查看瓦片图。通过瓦片图可以清晰的看到各个资源和模块之间的占比和关系,如下图所示:
125
125
 
126
126
  <img
127
- src="https://assets.rspack.rs/others/assets/rsdoctor/bundle-size-tile-graph.png"
127
+ src="https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/docs/usage/bundle/treemap.png"
128
+ width="500px"
129
+ style={{ margin: 'auto' }}
130
+ />
131
+
132
+ 同时可以点击卡片标题侧的 🔍 按钮,搜索 Module 资源,点击 Module 资源,可以放大到该 Module 区域,如下图所示:
133
+
134
+ <img
135
+ src="https://lf3-static.bytednsdoc.com/obj/eden-cn/lognuvj/rsdoctor/docs/usage/bundle/treemap.gif"
128
136
  width="500px"
129
137
  style={{ margin: 'auto' }}
130
138
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/docs",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rspress/plugin-rss": "2.0.0-beta.6",
23
- "@rspress/plugin-llms": "2.0.0-beta.14",
24
- "@rspress/plugin-algolia": "2.0.0-beta.14",
23
+ "@rspress/plugin-llms": "2.0.0-beta.16",
24
+ "@rspress/plugin-algolia": "2.0.0-beta.16",
25
25
  "@types/node": "^22.8.1",
26
26
  "@types/react": "^18.3.23",
27
27
  "@types/react-dom": "^18.3.7",
@@ -32,7 +32,7 @@
32
32
  "rspress-plugin-font-open-sans": "^1.0.0",
33
33
  "rspress-plugin-sitemap": "^1.1.4",
34
34
  "typescript": "^5.2.2",
35
- "@rsdoctor/types": "1.1.4"
35
+ "@rsdoctor/types": "1.1.5"
36
36
  },
37
37
  "dependencies": {
38
38
  "@rstack-dev/doc-ui": "1.10.6",