Skip to content

feat(rspress-plugin): support ssg-md#4412

Merged
2heal1 merged 4 commits intomainfrom
feat/rspress-ssg-md
Feb 12, 2026
Merged

feat(rspress-plugin): support ssg-md#4412
2heal1 merged 4 commits intomainfrom
feat/rspress-ssg-md

Conversation

@2heal1
Copy link
Copy Markdown
Member

@2heal1 2heal1 commented Feb 11, 2026

Description

support ssg-md

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 11, 2026

🦋 Changeset detected

Latest commit: 30b9ce0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 43 packages
Name Type
@module-federation/rspress-plugin Patch
website-new Patch
@module-federation/runtime Patch
@module-federation/enhanced Patch
@module-federation/rspack Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/dts-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/devtools Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/modern-js-v3 Patch
@module-federation/retry-plugin Patch
@module-federation/data-prefetch Patch
@module-federation/rsbuild-plugin Patch
@module-federation/error-codes Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/runtime-core Patch
create-module-federation Patch
@module-federation/cli Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend Patch
@module-federation/metro Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch
remote5 Patch
remote6 Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 11, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 30b9ce0
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/698d380cf5867400087c3fd8
😎 Deploy Preview https://deploy-preview-4412--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 619f80030c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +4 to +5
if (typeof document === 'undefined') {
return null;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Prevent hydration mismatch in the NoSSR wrapper

This guard makes server output and first client render diverge in every SSG/SSR page that uses NoSSR (document is undefined on the server but defined during hydration), so React hydrates mismatched markup and may recover by discarding pre-rendered content for that subtree. In practice this defeats the purpose of SSG for wrapped content and can produce hydration warnings/flicker; the wrapper needs a mounted-state gate (or the framework-provided NoSSR behavior) so initial client render also returns null.

Useful? React with 👍 / 👎.

Comment on lines +50 to +52
'react-router-dom': {
singleton: true,
requiredVersion: false,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Declare react-router-dom before auto-sharing it

Adding react-router-dom to the default shared map makes Module Federation resolve it from the consumer app, but this package does not declare that requirement. Consumers that only install @rspress/core (especially with strict package managers like pnpm) can now fail build-time resolution with Can't resolve 'react-router-dom' after upgrading, because the module is not guaranteed to exist at the app root unless explicitly declared.

Useful? React with 👍 / 👎.

@2heal1 2heal1 force-pushed the feat/rspress-ssg-md branch from 619f800 to 03c22fa Compare February 11, 2026 09:55
@github-actions
Copy link
Copy Markdown
Contributor

Bundle Size Report

2 package(s) changed, 36 unchanged.

Package Total dist Delta ESM gzip Delta
rsbuild-plugin 112.4 kB +1.5 kB (+1.3%) 91 B no change
rspress-plugin 10.4 kB +105 B (+1.0%) 2.7 kB +7 B (+0.3%)

Total dist: 6.66 MB (+1.6 kB (+0.0%))
Total ESM gzip: 137.6 kB (+7 B (+0.0%))

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 11, 2026

iOS Release APP for simulators

🔗 Download link.

Note: if the download link expires, please re-run the workflow to generate a new build.

Generated at 2026-02-12T02:40:34.663Z UTC

@2heal1 2heal1 force-pushed the feat/rspress-ssg-md branch from ea942fe to 30b9ce0 Compare February 12, 2026 02:16
@github-actions
Copy link
Copy Markdown
Contributor

Android Release APK for all devices

🔗 Download link.

Note: if the download link expires, please re-run the workflow to generate a new build.

Generated at 2026-02-12T02:28:39.671Z UTC

@2heal1 2heal1 merged commit a331eba into main Feb 12, 2026
22 of 24 checks passed
@2heal1 2heal1 deleted the feat/rspress-ssg-md branch February 12, 2026 02:28
@2heal1 2heal1 mentioned this pull request Mar 5, 2026
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.

1 participant