Skip to content

Fix GitHub issue 3881#3898

Merged
ScriptedAlchemy merged 5 commits intomainfrom
cursor/fix-github-issue-3881-6231
Jul 20, 2025
Merged

Fix GitHub issue 3881#3898
ScriptedAlchemy merged 5 commits intomainfrom
cursor/fix-github-issue-3881-6231

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Member

@ScriptedAlchemy ScriptedAlchemy commented Jul 11, 2025

#3881

This pull request introduces enhancements to the pluginModuleFederation functionality in the rsbuild-plugin package, focusing on improving flexibility and adding test coverage. The key changes include making the rsbuildOptions parameter optional and adding comprehensive unit tests for the pluginModuleFederation function.

Enhancements to pluginModuleFederation:

  • Made the rsbuildOptions parameter optional in the pluginModuleFederation function, improving its usability by allowing it to be called without explicitly passing configuration options. (packages/rsbuild-plugin/src/cli/index.ts, packages/rsbuild-plugin/src/cli/index.tsL101-R101)

Added unit tests:

  • Added a new test suite in index.test.ts to validate the behavior of the pluginModuleFederation function under different scenarios, including cases with and without the rsbuildOptions parameter. This ensures the function behaves as expected in all supported configurations. (packages/rsbuild-plugin/src/cli/index.test.ts, packages/rsbuild-plugin/src/cli/index.test.tsR1-R29)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 11, 2025

🦋 Changeset detected

Latest commit: a2c1a44

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

This PR includes changesets to release 33 packages
Name Type
@module-federation/rsbuild-plugin Patch
@module-federation/modern-js Patch
@module-federation/rspress-plugin Patch
remote5 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/retry-plugin Patch
@module-federation/data-prefetch 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/nextjs-mf Patch
@module-federation/node Patch
@module-federation/storybook-addon Patch
@module-federation/modernjsapp Patch
@module-federation/esbuild Patch
@module-federation/utilities 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

@ScriptedAlchemy ScriptedAlchemy requested a review from 2heal1 July 11, 2025 20:16
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 11, 2025

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit a2c1a44
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/687ad4bdcfb0ca0008488699
😎 Deploy Preview https://deploy-preview-3898--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 and others added 2 commits July 16, 2025 18:01
- Add describe, expect, it imports from vitest to index.test.ts
- Resolves CI test failure: ReferenceError: describe is not defined
- Ensures test runs properly with vitest test runner

Fixes #3881
@ScriptedAlchemy ScriptedAlchemy merged commit bb953a6 into main Jul 20, 2025
17 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the cursor/fix-github-issue-3881-6231 branch July 20, 2025 06:23
@2heal1 2heal1 mentioned this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants