Skip to content
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

fix: expose createServerHotChannel and validate createNodeDevEnvironment context #18007

Conversation

sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Sep 3, 2024

Description

Environments require an explicit hot channel or false to avoid potential performance hits when you actually don't need any HMR, but setting hmr to false by default can be confusing when you expect HMR to work out of the box. I think throwing an explicit error is the best of both worlds here.

Copy link

stackblitz bot commented Sep 3, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev merged commit cb24d3c into vitejs:v6/environment-api Sep 4, 2024
9 checks passed
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.

3 participants