Skip to content

fix(core): refine HMR client target detection - #8364

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-hmr-client-platform
Aug 25, 2026
Merged

chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-hmr-client-platform

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR makes HMR client injection follow Rspack's normalized web-page capabilities instead of Rsbuild's output.target, which can diverge when tools.rspack overrides the final target.

It keeps the client enabled for browser page targets such as electron-renderer while avoiding injection into Node.js, Web Worker, Electron main/preload, and NW.js outputs.

Related Links

#8337

@chenjiahan
chenjiahan merged commit 31a6ce2 into main Aug 25, 2026
7 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-hmr-client-platform branch August 25, 2026 03:47
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.

1 participant