Skip to content

optimized dependencies changed. reloading log appears on every startup with @vitejs/plugin-react #416

@hi-ogawa

Description

@hi-ogawa

Describe the bug

I'm not sure since when, but I just noticed rolldown-vite logs this for every startup.

$ pnpm -C packages/plugin-rsc/examples/starter dev 

> @vitejs/[email protected] dev /home/hiroshi/code/others/vite-plugin-react/packages/plugin-rsc/examples/starter
> vite

2:02:27 PM [vite] (client) Re-optimizing dependencies because vite config has changed

  ROLLDOWN-VITE v7.1.0  ready in 149 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
2:02:27 PM [vite] (client) ✨ optimized dependencies changed. reloading

It's possible this might be the cause of Waku CI failure https://github.com/vitejs/vite-ecosystem-ci/actions/runs/17634518373/job/50450596715 (I tested locally and the same log shows up on Waku too) and also recent rsc plugin CI flakiness vitejs/vite-plugin-react#854

I can also look into it, but it would be great if you have a hunch why this might be.

Reproduction

https://github.com/vitejs/vite-plugin-react

Steps to reproduce

On stackblitz https://stackblitz.com/edit/github-txe9huiu?file=package.json

Or locally

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @vitejs/plugin-react: latest => 5.0.2 
    @vitejs/plugin-rsc: latest => 0.4.30 
    rolldown-vite:  7.1.10

Used Package Manager

pnpm

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