Skip to content

fix: guard HMR merge descriptors when websocket is disabled - #23517

Closed
GruffElixir wants to merge 2 commits into
vitejs:mainfrom
GruffElixir:fix-merge-config-ws-false
Closed

GruffElixir wants to merge 2 commits into
vitejs:mainfrom
GruffElixir:fix-merge-config-ws-false

Conversation

@GruffElixir

Copy link
Copy Markdown

Fixes #23512.

When server.ws is explicitly false, the HMR compatibility setup does not create legacy property descriptors. Guard the descriptor copy during recursive config merging so server.hmr objects can still be merged without calling Object.defineProperty with undefined.

Test plan:

  • Added a regression test covering server.ws: false with a merged server.hmr object.
  • Ran a focused reproduction of the failing and fixed merge paths.

Copilot AI lite review requested due to automatic review settings September 18, 2026 10:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR label Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically flagged as likely to be created by a bot, LLM, or agent, and will be automatically closed. These contributions harm the maintenance of the project. Please read our AI policy for more information.

If you believe this is a mistake, please reply to this comment and we will review it.

@github-actions github-actions Bot closed this Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: likely Likely a bot, LLM, or agent. Automatically comments and closes the issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid browser-external warnings for imports explicitly disabled by browser mappings

2 participants