dprint-node
dprint-node copied to clipboard
ESM support
Thanks again for this great package. It would be fantastic if dprint-node would also offer ESM exports out of the box.
Hmm, I'm not sure how to do this with native packages. At the moment we rely on module.exports so we can load the correct native prebuild and re-export all of the functions to the namespace. I guess with ESM this would have to be done manually?
Unfortunately I don't yet have experience with this kind of setup myself. Hopefully someone else can help out here at some point? 🙏