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
In my index.ts I have a migration that runs, which will print some status strings.
I noticed that every time I change a file (say a controller.ts file) which has logic for an API, these migration strings will print, which leads me to believe the whole app is getting a full reload.
I read in the docs/issues that Vite will build a graph of modules and only hot-reload the ones that actually changed but this doesn't seem to be the case for me.
I do have my vite.config.ts set to use tsCompiler: 'esbuild', and I have an esbuild.mjs file that will bundle and minify my app so I'm wondering if it just replaces the entire file because there's only one file.
The text was updated successfully, but these errors were encountered:
pthieu
changed the title
Server going through a full reload every time a file changes
HMR not working, server going through a full reload every time a file changes
May 29, 2023
In my
index.ts
I have a migration that runs, which will print some status strings.I noticed that every time I change a file (say a
controller.ts
file) which has logic for an API, these migration strings will print, which leads me to believe the whole app is getting a full reload.I read in the docs/issues that Vite will build a graph of modules and only hot-reload the ones that actually changed but this doesn't seem to be the case for me.
I do have my
vite.config.ts
set to usetsCompiler: 'esbuild',
and I have anesbuild.mjs
file that will bundle and minify my app so I'm wondering if it just replaces the entire file because there's only one file.The text was updated successfully, but these errors were encountered: