-
-
Notifications
You must be signed in to change notification settings - Fork 8k
[vite] program reload log is missing timestamp prefix, inconsistent with other HMR log messages #22146
Copy link
Copy link
Labels
Description
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.tsxfile 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.177Used Package Manager
bun
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable