Skip to content

Conversation

@sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Oct 24, 2025

Description

watchChange hook was called only for the client environment for backward compat. But there was no way to opt-in to per-environment behavior like we have with perEnvironmentStartEndDuringDev. This PR adds perEnvironmentWatchChangeDuringDev flag to opt-in to the new behavior.

Ported the rolldown unrelated part of vitejs#463

@sapphi-red sapphi-red added the p2-nice-to-have Not breaking anything but nice to have (priority) label Oct 24, 2025
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

lgtm with a question

@sapphi-red sapphi-red merged commit a5e98e6 into vitejs:main Oct 27, 2025
16 checks passed
@sapphi-red sapphi-red deleted the feat/add-per-environment-watch-change-during-dev branch October 27, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p2-nice-to-have Not breaking anything but nice to have (priority)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants