From 1806fc6de146b2bb5b01cdba445909d4ece441fd Mon Sep 17 00:00:00 2001 From: DPGZl <30869555+DPGZl@users.noreply.github.com> Date: Thu, 12 Jun 2025 23:36:13 +0800 Subject: [PATCH] Update module-federation.mdx Refine the comment --- src/content/concepts/module-federation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/concepts/module-federation.mdx b/src/content/concepts/module-federation.mdx index b8b57df6de24..409e46987ded 100644 --- a/src/content/concepts/module-federation.mdx +++ b/src/content/concepts/module-federation.mdx @@ -115,7 +115,7 @@ packageName 选项允许通过设置包名来查找所需的版本。默认情 ```javascript (async () => { - // 初始化共享作用域(shared scope)用提供的已知此构建和所有远程的模块填充它 + // 初始化共享作用域(shared scope),使用此构建和所有远程模块中提供的已知模块来填充它 await __webpack_init_sharing__('default'); const container = window.someContainer; // 或从其他地方获取容器 // 初始化容器 它可能提供共享模块