Skip to content

Update module-federation.mdx #1909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: cn
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/concepts/module-federation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ packageName 选项允许通过设置包名来查找所需的版本。默认情

```javascript
(async () => {
// 初始化共享作用域(shared scope)用提供的已知此构建和所有远程的模块填充它
// 初始化共享作用域(shared scope),使用此构建和所有远程模块中提供的已知模块来填充它
await __webpack_init_sharing__('default');
const container = window.someContainer; // 或从其他地方获取容器
// 初始化容器 它可能提供共享模块
Expand Down