Context
Vite 8 depends on rolldown, which requires Node.js ^20.19.0 || >=22.12.0 (uses node:util.styleText added in 20.12.0). The current .nvmrc pins Node.js to 20.5.1, which prevents using vite 8 as a dev dependency alongside vitest 4.1+.
Currently:
What needs to happen
- Bump
.nvmrc to 20.19.0 (or higher)
- Update CI matrix Node versions accordingly
- Restore vite dev dependency to
^8.0.0
- Re-add
rolldown dev dep and tsconfig.json paths for vite 8 type resolution
Existing PRs that would unblock this
Either of these PRs landing would satisfy the Node.js requirement for vite 8 + rolldown. After one merges, the vite dev dep can be restored to ^8.0.0.
Related
Context
Vite 8 depends on rolldown, which requires Node.js
^20.19.0 || >=22.12.0(usesnode:util.styleTextadded in 20.12.0). The current.nvmrcpins Node.js to 20.5.1, which prevents using vite 8 as a dev dependency alongside vitest 4.1+.Currently:
^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0(added in feat(vitest-plugin): add vite 8 support #74)^7.0.0(reverted in fix(vitest-plugin): migrate deprecated vitest 4.1 imports #75 to keep tests running on Node 20.5.1)What needs to happen
.nvmrcto20.19.0(or higher)^8.0.0rolldowndev dep andtsconfig.jsonpaths for vite 8 type resolutionExisting PRs that would unblock this
.nvmrcto 24.4.1, CI matrix to[20, 22, 24])Either of these PRs landing would satisfy the Node.js requirement for vite 8 + rolldown. After one merges, the vite dev dep can be restored to
^8.0.0.Related