Improve ESM support #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pm-esm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The latest version of crel (4.0.1) looks backward compatible. It is also written using ES6 features. Unfortunately, it does not make use of ESM exports.
I submitted a PR but got not answers:
https://github.com/KoryNunn/crel/pull/51
In the meantime, I have forked the repository:
https://github.com/prosemirror-esm/crel/tree/crel-esm
and published it on npmjs.
I suggest using this version until official support is provided.
Partially merged in 5c8668dae0...85909bb1fde42. Possibly the crel maintainer will respond (though the repo does look pretty inactive). If you can find an equivalent small package that covers the same functionality but does export a module, I'd consider switching. (But it has to be small—I'm a bit picky about dependencies.)
@marijnh What about re:dom?
It seems to cover the same functionality (and more), the code is less than 2KB, maintained and supports ESM. Last but not least, the usage looks quite the same:
https://redom.js.org/#elements
re:dom is a lot bigger than crel (and does a whole lot of things we don't need), so that's not really what I was looking for.
Pull request closed