Skip to content

Update ramda imports #349

@chrispcampbell

Description

@chrispcampbell

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:

import R from 'ramda'

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).

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions