-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
base: module-reloaders
Are you sure you want to change the base?
Conversation
…g edge cases and performance scenarios
|
@ScriptedAlchemyBot review |
…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 <[email protected]>
- 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 <[email protected]>
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:
apps/vm-hotreload/full-demo/basic_debugging/README.md
, apps/vm-hotreload/full-demo/basic_debugging/README.mdR1-R218)createHMRRuntime
to initializecurrentUpdate
,currentUpdateRemovedChunks
, andcurrentUpdateRuntime
with more appropriate default values. (apps/vm-hotreload/full-demo/basic_debugging/hmr-runtime.js
, apps/vm-hotreload/full-demo/basic_debugging/hmr-runtime.jsL618-R620)Enhanced Force Update Capabilities:
apps/vm-hotreload/full-demo/basic_debugging/README.md
, apps/vm-hotreload/full-demo/basic_debugging/README.mdR1-R218)New Examples and Documentation:
apps/vm-hotreload/full-demo/basic_debugging/example-usage.js
, apps/vm-hotreload/full-demo/basic_debugging/example-usage.jsR1-R205)Expanded Development and Testing Scripts:
package.json
scripts to include unit, integration, end-to-end, and HMR client-specific tests, along with sequential and watch modes for testing. (apps/vm-hotreload/full-demo/basic_debugging/package.json
, apps/vm-hotreload/full-demo/basic_debugging/package.jsonL7-R20)Related Issue
Types of changes
Checklist