vitest-preview icon indicating copy to clipboard operation
vitest-preview copied to clipboard

Why is Vite a dependency rather than a peer dependency?

Open DiFuks opened this issue 1 year ago • 1 comments

We use Vite version 5 in the project, and the only library that has Vite 3 as a dependency is vitest-preview.

DiFuks avatar Feb 09 '24 10:02 DiFuks

Having the same issue, we used pnpm overrides in package.json to make vitest-preview use vite version from package.json this way:

{
  "pnpm": {
    "overrides": {
      "vitest-preview>vite": "$vite"
    }
  }
}

val1984 avatar Mar 27 '24 10:03 val1984