Skip to content

Commit a85ec3e

Browse files
authored
docs: add doc details (#2625)
1 parent 88900ad commit a85ec3e

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

apps/website-new/docs/en/guide/basic/runtime.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ registerRemotes([
403403
name: '@demo/sub1',
404404
entry: 'http://localhost:2003/mf-manifest.json',
405405
},
406-
]);
406+
], { force: true });
407407
```
408408
409409
## FAQ

apps/website-new/docs/en/guide/basic/type-prompt.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ Using `Federation Runtime`'s `loadRemote` can also enjoy type hints and type hot
5656

5757
![nested-remote](@public/guide/type-prompt/nested-remote.jpg)
5858

59+
### dynamic type hints
60+
61+
`Module Federation` supports loading dynamic types and generally supports hot updates.
62+
63+
![dynamic-remote-hot-types-reload](@public/guide/type-prompt/dynamic-remote-hot-types-reload-static.gif)
64+
5965
## Configuration
6066

6167
- [dts](../../configure/dts):generate/load type
1.94 MB
Loading

apps/website-new/docs/zh/guide/basic/runtime.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ registerRemotes([
403403
name: '@demo/sub1',
404404
entry: 'http://localhost:2003/mf-manifest.json',
405405
},
406-
]);
406+
], { force: true });
407407
```
408408
409409
## FAQ

apps/website-new/docs/zh/guide/basic/type-prompt.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@
5656

5757
![nested-remote](@public/guide/type-prompt/nested-remote.jpg)
5858

59+
### 动态类型提示
60+
61+
`Module Federation` 支持加载动态类型,并且通用支持热更新。
62+
63+
![dynamic-remote-hot-types-reload](@public/guide/type-prompt/dynamic-remote-hot-types-reload-static.gif)
64+
5965
## 配置
6066

6167
- [dts](../../configure/dts):类型生成/加载
@@ -74,3 +80,8 @@ config.watchOptions = {
7480
ignored: ['**/node_modules/**', '**/@mf-types/**'],
7581
};
7682
```
83+
84+
2. 动态类型未能正常获取
85+
86+
* 请确保 `Vmok` 版本大于等于 `1.9.0`
87+
* 动态类型需要访问页面加载指定模块后才会获取,请确保已经加载了对应模块。

0 commit comments

Comments
 (0)