Skip to content

Commit 4d6ceed

Browse files
authored
docs: tile graph documentation (#1139)
1 parent cf3c7a0 commit 4d6ceed

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

packages/document/docs/en/guide/usage/bundle-size.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,20 @@ The **Modules** tag is shown in the right image, from left to right representing
128128
- **Module Explorer** tag: Click to open the dependency analysis page between `Modules`.
129129
- **Code View** tag: Click to expand code segments, including `Source` (source code), `Transformed` (compiled code), and `Bundled` (bundled code).
130130

131-
## Bundle overview tile graph
131+
## Bundle tile graph
132132

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:
134134

135135
<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"
137145
width="500px"
138146
style={{ margin: 'auto' }}
139147
/>

packages/document/docs/zh/guide/usage/bundle-size.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,18 @@
121121

122122
## 产物总览瓦片图
123123

124-
点击 **「Bundle Size」** 页面的 **Bundle Analyzer Graph」** 按钮,可以查看经典的瓦片图。
124+
点击 **「Bundle Size」** 页面的 **Tile Graph」** 标签,可以查看瓦片图。通过瓦片图可以清晰的看到各个资源和模块之间的占比和关系,如下图所示:
125125

126126
<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"
128136
width="500px"
129137
style={{ margin: 'auto' }}
130138
/>

0 commit comments

Comments
 (0)