Ship ESM package
Author: ocavueCreated Sep 21, 2026Updated Sep 21, 2026
Hi @kepano, I love your work on Obsidian, and thank you for open-sourcing defuddle.
I noticed that defuddle is published as a CommonJS-only package, which isn’t ideal for tree-shaking.
Would you be open to a pull request that migrates the package to an ESM/CJS dual package?
I’m one of the members of rolldown/tsdown, so if you’re open to such a PR, I can also use tsdown to refactor the build system.
Let me know what you think. Thanks in advance.
Source: kepano/defuddle