Skip to content

Bug: with Vite 8 there is a build warning - esbuild option was specified by "vite-plugin-node-polyfills" plugin. This option is deprecated, please use oxc instead #142

@mtmacdonald

Description

@mtmacdonald

Summary

When using the upcoming version of Vite (either the vite-rolldown package, or the Vite 8 beta package) I get a build warning when using the vite-plugin-node-polyfills package. The build output shows:

You or a plugin you are using have set `optimizeDeps.esbuildOptions` but this option is now deprecated. Vite now uses Rolldown to optimize the dependencies. Please use `optimizeDeps.rollupOptions` instead.
Both esbuild and oxc options were set. oxc options will be used and esbuild options will be ignored.

To reproduce this, use either "vite": "npm:rolldown-vite@latest" or "vite": "npm:rolldown-vite@8.0.0-beta.5" in package.json (instead of Vite 7x).

Just a heads-up that it would be helpful to patch this once Vite 8 is out (or sooner if possible).

Thank you for maintaining the helpful package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions