-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
HMR won't work on vue files if import other packages which are in the same monorepo #17532
Closed
7 tasks done
Labels
Comments
In But import these in a ts file would not affect hmr feature. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Edit a file in a package of a monorepo. No HMR, no reload, but vite log shows that the module has been updated.
Reproduction
https://github.com/niuiic/vue-fusion
Steps to reproduce
Edit
packages/styles/src/App.vue
, just add aconsole.log('hello')
in script.No reload, no HMR.
However HMR works when change code in
<style>
.In addition, If I remove some code in
App.vue
andmain.ts
, HMR would be able to work, but not always.In another similar project (almost the same, but not a monorepo).
Edit
src/App.vue
.HMR works.
System Info
Used Package Manager
pnpm
Logs
vue-fusion styles
vue-resources
Validations
The text was updated successfully, but these errors were encountered: