You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
Disabling HMR with server.hmr: false is not invalidating cache on file change.
I would expect that when hmr is disabled we should still be able to pick up the changes upon browser refresh.
Worth noting that it could be relevant to #1273 and #1434. Since if you are able to run vite dev --mode production + server.hmr: false that's a good alternative to setup environment for writing e2e tests in development
in nwjs or electron app , it possible to need to disable hmr for any reason.
but server.hmr: false should also watch file change and allow applications restart !
Can we reopen this ? @yyx990803
Describe the bug
Disabling HMR with
server.hmr: false
is not invalidating cache on file change.I would expect that when hmr is disabled we should still be able to pick up the changes upon browser refresh.
Reproduction
https://github.com/AlexandreBonaventure/vite-hmr-disabled-bug
System Info
vite
version: 2.0.0.beta-23The text was updated successfully, but these errors were encountered: