Skip to content

Commit

Permalink
docs: optimize announcement doc (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw authored Apr 28, 2024
1 parent 0aa9c8d commit 94c0a67
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions apps/website-new/docs/en/blog/announcement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ loadRemote("app2/util").then((md)=>{
md.add(1,2,3);
});
```
### Unified Build Tool Runtime
### Decoupling Webpack and Supporting Cross-Tool Sharing of Modules

The new version of Rspack and the Webpack plugin adopts a completely new Runtime architecture. This means that build tools no longer need to be tightly bound to the logic of the Runtime. Thanks to the new Runtime's plugin mechanism and preloading capabilities, developers can enjoy more flexible and efficient control over module loading. Additionally, other build tools can also implement this standard, which not only reduces maintenance costs but also helps to maintain consistency and standardization of the runtime environment.
The new version of the Module Federation plugin adopts a completely new Runtime architecture. This change means that the build tool is no longer tightly coupled with the Runtime. Developers can now freely introduce artifacts produced by different build tools into their projects and flexibly assemble them for operation.

Currently, multiple build tools are compatible with it, including Webpack and Rspack. Other build tools can also implement Module Federation based on this standard, which will maintain consistency and standardization in the runtime.

### Type Hints

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions apps/website-new/docs/zh/blog/announcement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ loadRemote("app2/util").then((md)=>{
});
```

### 统一 Module Federation 构建工具运行时
### 解绑 Webpack,支持跨工具共享模块


新版 Rspack 和 Webpack 的 Module Federation 插件采用了全新的 Runtime 架构。这意味着构建工具不必再与 Module Federation Runtime 的逻辑紧密绑定。得益于新 Runtime 的插件机制和预加载功能,开发者可以享受更加灵活和高效的模块加载控制。此外,其他构建工具也可以依据这一标准实现 Module Federation,这不仅降低了维护成本,还有助于保持运行时环境的一致性和标准化。
新版 Module Federation 插件采用了全新的 Runtime 架构。这一变化使得构建工具不再需要与 Runtime 强绑定。开发者有望在项目中自由地引入由不同构建工具的产物,并灵活地组装它们进行运行。

目前,已经有多个构建工具与之兼容,包括 Webpack、Rspack 。其他构建工具也可以依据这一标准实现 Module Federation,这将保持运行时的一致性和标准化。

### 类型提示

Expand Down

0 comments on commit 94c0a67

Please sign in to comment.