origamitower / folktale

[not actively maintained!] A standard library for functional programming in JavaScript
https://folktale.origamitower.com/
MIT License
2.05k stars 102 forks source link

Support for esm #226

Open Sceat opened 4 years ago

Sceat commented 4 years ago
import Task from 'folktale/concurrency/task/index.js'
const { task } = Task
// succeed
import { task } from 'folktale/concurrency/task/index.js'
// fails

Do you plan to support type modules ? Thanks.

robotlolita commented 4 years ago

It was planned for the next version, but between me moving to another country and not working with JavaScript anymore, finding time to maintain this library has been difficult :(

opiation commented 3 years ago

Hey @robotlolita, I can probably start working on a PR that rewrites all require()/module.exports as import/export and attempts to get CommonJS and ESM builds in the CI. I'll probably need some help after that though.

Any particular branch I should target for said PR?

robotlolita commented 3 years ago

@opiation you can base it off the master branch, and PR towards the master branch.