Skip to content

"You have set optimizeDeps.esbuildOptions…" error despite not setting it (or...?) #207

Open
@wojtekmaj

Description

@wojtekmaj

Describe the bug

I migrated my Vite 6.3.5 config to rolldown-vite to try it out. After what I thought would be a set of minimal changes, I was met with:

You have set `optimizeDeps.esbuildOptions` but this options is now deprecated. Vite now uses Rolldown to optimize the dependencies. Please use `optimizeDeps.rollupOptions` instead.

It took me quite a long time to figure out, that it's not me using said option; in fact, it's @vitejs/plugin-react. It would be very helpful to include the name of the plugin causing issues in the warning message itself.

Reproduction

https://stackblitz.com/edit/vitejs-rolldown-vite-qpp6r4kq?file=package.json,vite.config.ts

Steps to reproduce

No response

System Info

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 959.13 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.0.2 - /usr/local/bin/node
    Yarn: 4.9.1 - /usr/local/bin/yarn
    npm: 11.3.0 - /usr/local/bin/npm
  npmPackages:
    @vitejs/plugin-basic-ssl: ^1.2.0 => 1.2.0 
    @vitejs/plugin-react: ^4.3.4 => 4.3.4 
    rolldown-vite:  6.3.14

Used Package Manager

yarn

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions