Skip to content

[vite] program reload log is missing timestamp prefix, inconsistent with other HMR log messages #22146

@Bryasxin

Description

@Bryasxin

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.

  1. Run vite dev
  2. 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)
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions