wxt icon indicating copy to clipboard operation
wxt copied to clipboard

Make Vite a Peer Dependency

Open aklinker1 opened this issue 7 months ago • 1 comments

Feature Request

I get lots of comments about this issue:

  • https://github.com/wxt-dev/wxt/issues/1460#issuecomment-2811260819
  • https://github.com/wxt-dev/wxt/issues/1702

Which would be solved by making Vite a peer and requiring all projects list a version of it in their package.json.

Is your feature request related to a bug?

N/A

What are the alternatives?

Keep it a subdependency. Only benefit here is WXT has control over the version of vite it uses, and can prevent people from trying a newer version, like v7, before it's ready.

It's easy to ignore peer dependency version warnings, while those should tell the user t hey have an invalid version installed.

aklinker1 avatar Apr 30 '25 12:04 aklinker1