Skip to content

Commit ec63773

Browse files
authored
chore: delete vmok docs releated content (#3429)
1 parent 8c7d739 commit ec63773

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@ init({
313313
remotes: [
314314
{
315315
name: '@demo/sub1',
316-
entry: 'http://localhost:2001/vmok-manifest.json',
316+
entry: 'http://localhost:2001/mf-manifest.json',
317317
},
318318
{
319319
name: '@demo/sub2',
320-
entry: 'http://localhost:2002/vmok-manifest.json',
320+
entry: 'http://localhost:2002/mf-manifest.json',
321321
},
322322
{
323323
name: '@demo/sub3',
324-
entry: 'http://localhost:2003/vmok-manifest.json',
324+
entry: 'http://localhost:2003/mf-manifest.json',
325325
},
326326
],
327327
});
@@ -460,7 +460,7 @@ There are the following differences between `Federation Runtime` and `Build Plug
460460
| `shared` must provide specific version and instance information | `shared` only requires configuration rules, no specific version or instance information needed |
461461
| `shared` dependencies can only be used externally, cannot use external `shared` dependencies | `shared` dependencies can be shared bidirectionally according to specific rules |
462462
| Can affect the loading process through `runtime`'s `plugin` mechanism | Can affect the loading process through `runtimePlugin` configuration |
463-
| Pure runtime does not support remote type hints | Supports remote type hints |
463+
| Supports remote module type hints | Supports remote module type hints |
464464
465465
### Why Runtime
466466

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,15 @@ init({
293293
remotes: [
294294
{
295295
name: '@demo/sub1',
296-
entry: 'http://localhost:2001/vmok-manifest.json',
296+
entry: 'http://localhost:2001/mf-manifest.json',
297297
},
298298
{
299299
name: '@demo/sub2',
300-
entry: 'http://localhost:2002/vmok-manifest.json',
300+
entry: 'http://localhost:2002/mf-manifest.json',
301301
},
302302
{
303303
name: '@demo/sub3',
304-
entry: 'http://localhost:2003/vmok-manifest.json',
304+
entry: 'http://localhost:2003/mf-manifest.json',
305305
},
306306
],
307307
});
@@ -369,10 +369,12 @@ interface RemoteWithVersion {
369369
}
370370
```
371371
372-
- 细节
373-
**info**: 设置 `force:true` 时请小心 !
372+
:::warning
373+
请谨慎设置 `force:true`!
374+
375+
在你设置 `force: true` 后我们将合并远程(包括已加载的远程),并移除已加载的远程缓存,同时我们将使用 `console.warn` 来警告此操作可能存在风险。
376+
:::
374377
375-
如果设置 `force: true`,它将合并远程(包括已加载的远程),并移除已加载的远程缓存,同时会使用 `console.warn` 来警告此操作可能存在风险。
376378
377379
- Example
378380
@@ -440,7 +442,7 @@ registerPlugins([runtimePlugin()]);
440442
| 设置 `shared` 必须提供具体版本和实例信息 | 设置 `shared` 只需要配置规则即可,无须提供具体版本及实例信息 |
441443
| `shared` 依赖只能供外部使用,无法使用外部 `shared` 依赖 | `shared` 依赖按照特定规则双向共享 |
442444
| 可以通过 `runtime``plugin` 机制影响加载流程 | 可以通过 `runtimePlugin` 配置影响加载流程 |
443-
| 纯运行时不支持远程类型提示 | 支持远程类型提示 |
445+
| 支持远程模块类型提示 | 支持远程模块类型提示 |
444446
445447
### Why Runtime
446448

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,4 @@ A: 大概率是编译器监听了类型文件夹或者 `dist` 里的变动导致
8989
config.watchOptions = {
9090
ignored: ['**/node_modules/**', '**/@mf-types/**'],
9191
};
92-
```
93-
94-
2. 动态类型未能正常获取
95-
96-
* 请确保 `Vmok` 版本大于等于 `1.9.0`
97-
* 动态类型需要访问页面加载指定模块后才会获取,请确保已经加载了对应模块。
92+
```

0 commit comments

Comments
 (0)