Skip to content

fix(vite-plugin-windicss): fix vite5 hmr#326

Merged
antfu merged 4 commits intowindicss:mainfrom
markthree:main
Dec 25, 2023
Merged

fix(vite-plugin-windicss): fix vite5 hmr#326
antfu merged 4 commits intowindicss:mainfrom
markthree:main

Conversation

@markthree
Copy link
Contributor

@markthree markthree commented Dec 24, 2023

In vite5, watchChange is triggered before hmr even if the devServer is started, which causes the hot update to fail, add the inHmr flag to skip the repeat trigger (as in vite4)

I simply tested vite4 and vite5 in the local area, and now their HMR works well.
If there is any case, I was ignored, please tell me. 🤣

Maybe there are stricter restrictions here, even specific to the vite version

@antfu antfu merged commit 29cbb86 into windicss:main Dec 25, 2023
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.

2 participants