vitest-preview
vitest-preview copied to clipboard
Why is Vite a dependency rather than a peer dependency?
We use Vite version 5 in the project, and the only library that has Vite 3 as a dependency is vitest-preview.
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"
}
}
}