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(dev): do not update when there are no modules #1818

Merged
merged 1 commit into from
Jan 30, 2021
Merged

fix(dev): do not update when there are no modules #1818

merged 1 commit into from
Jan 30, 2021

Conversation

CHOYSEN
Copy link
Contributor

@CHOYSEN CHOYSEN commented Jan 30, 2021

Mini reproduction:

  1. create a new vite project
  2. yarn dev
  3. add a file in the root directory

The logger prints 上午1:57:12 [vite], there are no message
https://github.com/vitejs/vite/blob/main/packages/vite/src/node/server/hmr.ts#L148-L153

@yyx990803 yyx990803 merged commit 59fe913 into vitejs:main Jan 30, 2021
@CHOYSEN CHOYSEN deleted the fix1 branch January 31, 2021 02:34
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