I was working on adding some new tests in the compile package (to expand coverage of existing behavior) and found that vitest doesn't work with the existing import style for ramda.
We currently use:
We are currently on ramda@0.27.2 and have been for some time, but I found in the 0.25 upgrade guide that when they changed to ESM, they said the import style needs to be changed to:
import * as R from 'ramda'
See 0.25 upgrade guide:
ramda/ramda#2319
Once I made this change, then vitest has no problem importing all the compile package sources that use ramda. And it has no impact on behavior (tests all pass).
I was working on adding some new tests in the
compilepackage (to expand coverage of existing behavior) and found that vitest doesn't work with the existing import style for ramda.We currently use:
We are currently on ramda@0.27.2 and have been for some time, but I found in the 0.25 upgrade guide that when they changed to ESM, they said the import style needs to be changed to:
See 0.25 upgrade guide:
ramda/ramda#2319
Once I made this change, then vitest has no problem importing all the
compilepackage sources that use ramda. And it has no impact on behavior (tests all pass).