Describe the bug
When HMR triggers a program reload, the log line [vite] program reload is missing the timestamp prefix that all other HMR messages have, resulting in inconsistent output format.
The actual situation:
10:34:31 AM [vite] (client) hmr update [...files]
10:34:31 AM [vite] (ssr) page reload [file]
[vite] program reload
Expected:
10:34:31 AM [vite] (client) hmr update [...files]
10:34:31 AM [vite] (ssr) page reload [file]
10:34:31 AM [vite] (ssr) program reload
I intend to submit a PR for this issue.
Reproduction
https://github.com/Bryasxin/tanstack-start-minimal-starter
Steps to reproduce
Any project using Vite's HMR.
- Run
vite dev
- Edit any source file to trigger a program reload (e.g., editing the
src/routes/index.tsx file in the reproduction example will trigger this)
- Observe the terminal output
System Info
System:
OS: Linux 6.19 Arch Linux
CPU: (16) x64 AMD Ryzen 7 5700G with Radeon Graphics
Memory: 3.55 GB / 30.64 GB
Container: Yes
Shell: 4.6.0 - /usr/bin/fish
Binaries:
Node: 25.9.0 - /usr/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 11.12.1 - /usr/bin/npm
pnpm: 10.33.0 - /usr/bin/pnpm
bun: 1.3.11 - /usr/bin/bun
Deno: 2.7.11 - /usr/bin/deno
Browsers:
Chromium: 146.0.7680.177
Used Package Manager
bun
Logs
No response
Validations
Describe the bug
When HMR triggers a
program reload, the log line[vite] program reloadis missing the timestamp prefix that all other HMR messages have, resulting in inconsistent output format.The actual situation:
Expected:
I intend to submit a PR for this issue.
Reproduction
https://github.com/Bryasxin/tanstack-start-minimal-starter
Steps to reproduce
Any project using Vite's HMR.
vite devsrc/routes/index.tsxfile in the reproduction example will trigger this)System Info
Used Package Manager
bun
Logs
No response
Validations