Skip to content

fix: expose createServerHotChannel and validate createNodeDevEnvironment context#18007

Merged
patak-cat merged 1 commit into
vitejs:v6/environment-apifrom
sheremet-va:fix/expose-server-hot-channe;
Sep 4, 2024
Merged

fix: expose createServerHotChannel and validate createNodeDevEnvironment context#18007
patak-cat merged 1 commit into
vitejs:v6/environment-apifrom
sheremet-va:fix/expose-server-hot-channe;

Conversation

@sheremet-va
Copy link
Copy Markdown
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.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

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