dprint-node icon indicating copy to clipboard operation
dprint-node copied to clipboard

ESM support

Open schickling opened this issue 4 years ago • 2 comments

Thanks again for this great package. It would be fantastic if dprint-node would also offer ESM exports out of the box.

schickling avatar Jun 18 '21 09:06 schickling

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?

devongovett avatar Jun 18 '21 15:06 devongovett

Unfortunately I don't yet have experience with this kind of setup myself. Hopefully someone else can help out here at some point? 🙏

schickling avatar Jun 23 '21 18:06 schickling