Skip to content

Getting warning when using with Vite 8.0 #597

@ibrahima

Description

@ibrahima
  • I have tried upgrading by running bundle update vite_ruby.
  • I have read the troubleshooting section before opening an issue.

Description 📖

When I run this with Vite 8.0 I get this warning even if my config is changed to use rolldownOptions:

[vite] warning: Both `rollupOptions` and `rolldownOptions` were specified by "vite-plugin-ruby" plugin. `rollupOptions` specified by that plugin will be ignored.

It also seems like the user options should be based on the optionsKey rather than being hardcoded to rollupOptions in

const rollupOptions = userConfig.build?.rollupOptions

Does that make sense or am I using it wrong somehow? Thank you!

(Apologies for the lack of full reproduction but I think at least the second point is a clear issue with how the current config is being looked up.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: pending triageSomething doesn't seem to be working, but hasn't been verified

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions