Skip to content

feat(node): Custom HMR Bundler Runtime & Client #3849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 30 commits into
base: module-reloaders
Choose a base branch
from

Conversation

ScriptedAlchemy
Copy link
Member

Description

This pull request introduces significant improvements to the HMR (Hot Module Replacement) debugging system, transitioning from a backend-dependent approach to a flexible, provider-based architecture. It includes refactoring of the runtime state, new update provider options, enhanced force update capabilities, and expanded testing and development scripts.

Refactoring and Architecture Changes:

Enhanced Force Update Capabilities:

New Examples and Documentation:

Expanded Development and Testing Scripts:

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.

ScriptedAlchemy and others added 22 commits June 3, 2025 10:11
Copy link

changeset-bot bot commented Jun 19, 2025

🦋 Changeset detected

Latest commit: 356d3dd

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

This PR includes changesets to release 32 packages
Name Type
@module-federation/modern-js 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/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/nextjs-mf Patch
@module-federation/node Patch
@module-federation/storybook-addon Patch
@module-federation/modernjsapp Patch
@module-federation/esbuild Patch
@module-federation/utilities Patch
remote5 Patch
website-new 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
Copy link
Member Author

@ScriptedAlchemyBot review

ScriptedAlchemy and others added 5 commits June 19, 2025 14:48
…lities

- Convert MCP host from TypeScript to JavaScript for simplified runtime
- Update webpack config to handle JS modules with Module Federation
- Add debug logging and MCP host verification functionality
- Create debug log tracking for development workflow
- Configure proper build and serve targets for development

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Set config.output.publicPath = 'auto' to fix manifest plugin issue
- Host now properly attempts to load remotes via HTTP
- Identified root cause: remotes missing @module-federation/runtime-core dependency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Fix MCP registry to call tool handlers directly instead of using server.request()
- Add auto-shutdown after demo completion for better development workflow
- Enable successful tool execution for filesystem, database, and git operations
- Resolve "Not connected" errors by bypassing network transport layer

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

6 participants