Skip to content

docs: clarify runtime-tools dependency in module federation docs#7487

Merged
chenjiahan merged 5 commits intomainfrom
chenjiahan/docs-runtime-tools-notes
Apr 13, 2026
Merged

docs: clarify runtime-tools dependency in module federation docs#7487
chenjiahan merged 5 commits intomainfrom
chenjiahan/docs-runtime-tools-notes

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

  • clarify that @module-federation/runtime-tools must be installed when using moduleFederation.options
  • add the same upgrade note to the v1-to-v2 migration guide in both English and Chinese docs

Related Links

  • None

Copilot AI review requested due to automatic review settings April 13, 2026 07:48
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 13, 2026

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: ab5d137
Status: ✅  Deploy successful!
Preview URL: https://46d6fb07.rsbuild-v2.pages.dev
Branch Preview URL: https://chenjiahan-docs-runtime-tool.rsbuild-v2.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Rsbuild documentation to clarify that using moduleFederation.options (Module Federation v1.5) requires installing @module-federation/runtime-tools, and adds the same upgrade note to the v1→v2 migration guides in both English and Chinese.

Changes:

  • Add an upgrade note in the v1→v2 migration guides (EN/ZH) about installing @module-federation/runtime-tools when using moduleFederation.options.
  • Update the moduleFederation.options config docs (EN/ZH) to document the runtime dependency and show an install command.
  • Restructure the migration guide dependency section to separate Polyfill vs Module Federation notes.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
website/docs/zh/guide/upgrade/v1-to-v2.mdx Adds Module Federation runtime-tools installation note in the v1→v2 migration guide (ZH).
website/docs/zh/config/module-federation/options.mdx Documents the runtime-tools requirement for moduleFederation.options and adds install snippet (ZH).
website/docs/en/guide/upgrade/v1-to-v2.mdx Adds Module Federation runtime-tools installation note and restructures dependency section (EN).
website/docs/en/config/module-federation/options.mdx Documents the runtime-tools requirement for moduleFederation.options and adds install snippet (EN).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/docs/en/guide/upgrade/v1-to-v2.mdx Outdated
Comment thread website/docs/en/guide/upgrade/v1-to-v2.mdx Outdated
Comment thread website/docs/zh/guide/upgrade/v1-to-v2.mdx Outdated
Comment thread website/docs/en/config/module-federation/options.mdx
Comment thread website/docs/zh/config/module-federation/options.mdx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 13, 2026 07:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Rsbuild v2 documentation to reflect that @module-federation/runtime-tools is now an optional peer dependency, requiring manual installation for projects using Module Federation v1.5. The review feedback focuses on improving documentation quality by ensuring consistent linking to external resources—specifically adding anchor tags to Rspack documentation and linking package names to npm—and standardizing technical terminology in the Chinese translation.

Comment thread website/docs/en/config/module-federation/options.mdx
Comment thread website/docs/en/guide/upgrade/v1-to-v2.mdx Outdated
Comment thread website/docs/zh/config/module-federation/options.mdx
Comment thread website/docs/zh/guide/upgrade/v1-to-v2.mdx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/docs/en/guide/upgrade/v1-to-v2.mdx Outdated
@chenjiahan chenjiahan merged commit 3baa995 into main Apr 13, 2026
6 checks passed
@chenjiahan chenjiahan deleted the chenjiahan/docs-runtime-tools-notes branch April 13, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants