Skip to content

Comments

fix: patch handleHotUpdate properly#2903

Merged
fwouts merged 1 commit intofwouts:mainfrom
sapphi-red:fix/patch-handle-hot-update-properly
Jun 3, 2025
Merged

fix: patch handleHotUpdate properly#2903
fwouts merged 1 commit intofwouts:mainfrom
sapphi-red:fix/patch-handle-hot-update-properly

Conversation

@sapphi-red
Copy link
Contributor

While the current patch code works fine as this is undefined for current Vite, Vite 7+ will pass the context (vitejs/vite#19936) and the current code doesn't work anymore.
This PR changes the code to call the hook function with the original this.

This PR should fix the ecosystem-ci failure.
https://github.com/vitejs/vite-ecosystem-ci/actions/runs/15291891294/job/43012757742#step:8:3335

@CLAassistant
Copy link

CLAassistant commented May 29, 2025

CLA assistant check
All committers have signed the CLA.

@sapphi-red sapphi-red changed the title fix: patch handleHotUpdate properly fix: patch handleHotUpdate properly May 29, 2025
@fwouts fwouts merged commit 29a71f8 into fwouts:main Jun 3, 2025
1 check passed
@fwouts
Copy link
Owner

fwouts commented Jun 3, 2025

Thank you @sapphi-red. This project isn't actively maintained at the moment, so you can remove it from the ecosystem-ci checks.

@sapphi-red sapphi-red deleted the fix/patch-handle-hot-update-properly branch June 7, 2025 13:59
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