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(hmr): prevent SSR from setting isSelfAccepting to false #5377

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

aleclarson
Copy link
Member

HMR transforms rarely apply to SSR modules, so we want to give precedence to browser code when deciding if the module self-accepts.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

HMR transforms rarely apply to SSR modules, so we want to give precedence to browser code when deciding if the module self-accepts.
@aleclarson aleclarson added p4-important Violate documented behavior or significantly improves performance (priority) feat: hmr labels Oct 21, 2021
Copy link
Member

@antfu antfu left a comment

Choose a reason for hiding this comment

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

It sounds to be making sense to me. Tho I don't know how to test it 👀

@patak-dev patak-dev merged commit 37e5617 into vitejs:main Nov 19, 2021
@aleclarson aleclarson deleted the fix/hmr-ssr-selfaccept branch February 25, 2022 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: hmr p4-important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants