folktale
folktale copied to clipboard
Support for esm
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.
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 :(
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?
@opiation you can base it off the master branch, and PR towards the master branch.