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

Build --watch need HMR #16691

Closed
7 tasks done
gumingWu opened this issue May 16, 2024 · 2 comments
Closed
7 tasks done

Build --watch need HMR #16691

gumingWu opened this issue May 16, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@gumingWu
Copy link

Describe the bug

We knew that Vite has a very strong power of HMR when using devServer

But I have a scenario like using vite build --watch and vite preview, when I change the file, because of build --watch, bundle will change quickly, but the preview view has not changed

e.g.

image

I changed the file but view has no changed

Reproduction

https://stackblitz.com/edit/vitejs-vite-pkxzx4?file=main.js

Steps to reproduce

No response

System Info

System:
    OS: macOS 14.3
    CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
    Memory: 3.95 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - ~/Library/Caches/fnm_multishells/71948_1715846248097/bin/node
    npm: 8.19.4 - ~/Library/Caches/fnm_multishells/71948_1715846248097/bin/npm
    pnpm: 8.15.6 - ~/Library/Caches/fnm_multishells/71948_1715846248097/bin/pnpm
  Browsers:
    Chrome: 124.0.6367.203
    Edge: 124.0.2478.105
    Safari: 17.3

Used Package Manager

npm

Logs

No response

Validations

Copy link

stackblitz bot commented May 16, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@sapphi-red
Copy link
Member

Duplicate of #5196

@sapphi-red sapphi-red marked this as a duplicate of #5196 May 16, 2024
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels May 16, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants