Skip to content

feat(rstest-plugin): add standalone federation plugin package#4320

Open
ScriptedAlchemy wants to merge 57 commits intomainfrom
rstest-plugin
Open

feat(rstest-plugin): add standalone federation plugin package#4320
ScriptedAlchemy wants to merge 57 commits intomainfrom
rstest-plugin

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

@ScriptedAlchemy ScriptedAlchemy commented Jan 27, 2026

Summary

  • introduce @module-federation/rstest-plugin as a dedicated package extracted from @rstest/core
  • provide federation() plugin wiring for Rsbuild-based test flows
  • include package scaffolding, tests, docs, and project configuration for standalone publishability

Changed Packages

  • @module-federation/rstest-plugin

Changesets

  • .changeset/sharp-rats-sniff.md (@module-federation/rstest-plugin: patch)
  • .changeset/config.json (changeset tooling config update)

Base

  • main

Single-PR Review Guide (No Additional PRs)

This PR will remain a single PR. Improvements are being done in-place (no stacked or follow-up PR splitting).

Suggested Review Order

  1. Core behavior/runtime changes first.
  2. Build/tooling and workflow updates second.
  3. Docs/examples/app fixtures last.

In-Place Scope Trim Checklist

  • Remove unrelated churn not required for this PR goal.
  • Keep lockfile and generated changes only when strictly needed.
  • Confirm acceptance criteria and regression tests are explicit in this PR.
  • Resolve merge conflict status and required CI checks before final re-review.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 27, 2026

🦋 Changeset detected

Latest commit: 517741e

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

This PR includes changesets to release 46 packages
Name Type
@module-federation/rstest 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 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/rspress-plugin 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/esbuild 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/utilities Patch
remote5 Patch
remote6 Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
website-new Patch
node-dynamic-remote-new-version Patch
node-dynamic-remote 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 Jan 27, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 517741e
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69bc843fd246820008ee5c4d
😎 Deploy Preview https://deploy-preview-4320--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.

@ScriptedAlchemy ScriptedAlchemy changed the title fix(rstest-plugin): force cjs output for federation tests chore(enhanced): migrate to rstest Jan 28, 2026
@ScriptedAlchemy ScriptedAlchemy changed the title chore(enhanced): migrate to rstest feat(rstest): rstest plugin Jan 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 6, 2026

Bundle Size Report

11 package(s) changed, 30 unchanged.

Package dist + ESM entry

Package Total dist (raw) Delta ESM gzip Delta
@module-federation/cli 26.7 kB no change 786 B no change
@module-federation/core 39.1 kB no change 173 B no change
@module-federation/devtools 473.2 kB no change 3.9 kB no change
@module-federation/enhanced 811.0 kB no change 672 B no change
@module-federation/managers 69.9 kB no change 334 B no change
@module-federation/manifest 138.4 kB no change 182 B no change
@module-federation/metro-plugin-rnc-cli 0 B no change 314 B no change
@module-federation/node 189.2 kB no change 217 B no change
@module-federation/rstest 20.7 kB +20.7 kB (+∞%) 2.0 kB +2.0 kB (+∞%)
@module-federation/storybook-addon 77.1 kB no change 100 B no change
@module-federation/utilities 110.6 kB no change 328 B no change

Bundle targets

Package Web bundle (gzip) Delta Node bundle (gzip) Delta
@module-federation/cli 2.3 kB -33 B (-1.4%) 2.3 kB -33 B (-1.4%)
@module-federation/core 1.1 kB -31 B (-2.8%) 1.0 kB -30 B (-2.8%)
@module-federation/devtools 20.8 kB -26 B (-0.1%) 20.8 kB -26 B (-0.1%)
@module-federation/enhanced 2.6 kB -45 B (-1.6%) 2.6 kB -45 B (-1.6%)
@module-federation/managers 2.4 kB -27 B (-1.1%) 2.4 kB -27 B (-1.1%)
@module-federation/manifest 6.2 kB -38 B (-0.6%) 6.2 kB -38 B (-0.6%)
@module-federation/metro-plugin-rnc-cli 411 B -25 B (-5.7%) 411 B -25 B (-5.7%)
@module-federation/node 9.2 kB -29 B (-0.3%) 9.2 kB -29 B (-0.3%)
@module-federation/rstest 1.3 kB +1.3 kB (+∞%) 1.3 kB +1.3 kB (+∞%)
@module-federation/storybook-addon 1.9 kB -24 B (-1.2%) 1.7 kB -24 B (-1.3%)
@module-federation/utilities 2.6 kB -32 B (-1.2%) 2.6 kB -32 B (-1.2%)

Consumer scenarios

Scenario Web output (gzip) Delta Node output (gzip) Delta Gap (node-web) Delta
Enhanced remoteEntry 19.5 kB -20 B (-0.1%) 20.5 kB -17 B (-0.1%) +1.0 kB +3 B

Total dist (raw): 6.34 MB (+20.7 kB (+0.3%))
Total ESM gzip: 75.5 kB (+2.0 kB (+2.8%))
Total web bundle (gzip): 179.2 kB (+1.0 kB (+0.6%))
Total node bundle (gzip): 179.7 kB (+1.0 kB (+0.6%))
Tracked ./bundler entry gzip: 556 B (no change)
Tracked ./bundler web bundle (gzip): 4.5 kB (no change)
Tracked ./bundler node bundle (gzip): 4.5 kB (no change)

Bundle sizes are generated with rslib (Rspack). Package-root metrics preserve the historical report. Tracked subpath exports such as ./bundler are measured separately so ENV_TARGET-driven tree-shaking is visible. Bare imports are externalized to keep package-level sizes consistent, and assets are emitted as resources.

ScriptedAlchemy and others added 10 commits February 6, 2026 15:39
raven-actions/actionlint@v2 runs npm install internally which fails
on pnpm workspace repos due to workspace:* protocol. Switch to direct
binary download which has no npm dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	pnpm-lock.yaml
@ScriptedAlchemy ScriptedAlchemy changed the title feat(rstest): rstest plugin feat(rstest-plugin): add standalone federation plugin package Feb 12, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 14, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/devtools@517741e

@module-federation/cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/cli@517741e

create-module-federation

pnpm add https://pkg.pr.new/module-federation/core/create-module-federation@517741e

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/data-prefetch@517741e

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/dts-plugin@517741e

@module-federation/enhanced

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/enhanced@517741e

@module-federation/error-codes

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/error-codes@517741e

@module-federation/esbuild

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/esbuild@517741e

@module-federation/managers

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/managers@517741e

@module-federation/manifest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/manifest@517741e

@module-federation/metro

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro@517741e

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnc-cli@517741e

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnef@517741e

@module-federation/modern-js

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js@517741e

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js-v3@517741e

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/native-federation-tests@517741e

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/native-federation-typescript@517741e

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/nextjs-mf@517741e

@module-federation/node

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/node@517741e

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/retry-plugin@517741e

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rsbuild-plugin@517741e

@module-federation/rspack

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspack@517741e

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspress-plugin@517741e

@module-federation/rstest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rstest@517741e

@module-federation/runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime@517741e

@module-federation/runtime-core

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-core@517741e

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-tools@517741e

@module-federation/sdk

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/sdk@517741e

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/storybook-addon@517741e

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/third-party-dts-extractor@517741e

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-frontend@517741e

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-server@517741e

@module-federation/typescript

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/typescript@517741e

@module-federation/utilities

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/utilities@517741e

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/webpack-bundler-runtime@517741e

@module-federation/bridge-react

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react@517741e

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react-webpack-plugin@517741e

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-shared@517741e

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-vue3@517741e

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/inject-external-runtime-core-plugin@517741e

commit: 517741e

Use TCP port probes for local server readiness checks instead of HTTP fetch polling.
Add minimal read-only workflow permissions to the e2e-rstest CI job.

Co-authored-by: Cursor <cursoragent@cursor.com>
ScriptedAlchemy and others added 15 commits February 24, 2026 14:01
Resolve the dts-plugin TYPE-001 failure by correcting package entry paths for
workspace dependencies and updating RawSource usage for webpack typings.

Co-authored-by: Cursor <cursoragent@cursor.com>
Refresh pnpm-lock.yaml for this branch so checkout-install and publish-preview
no longer fail with ERR_PNPM_OUTDATED_LOCKFILE.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restore sdk and error-codes export paths to the filenames emitted by the
current build so CI package resolution no longer fails on these branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zhoushaw zhoushaw closed this Mar 9, 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.

4 participants