Description
The ESM export cannot be used as Node.js requires either "type": "module" explicitly or the .mjs extension.
(node:9293) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
You can try forcing the CJS export to be used by using the synthetic default but then development systems like vitest fail as they know it is ESM from the typescript source.
I'm not sure if it is possible to get Bun to use the .mjs extension on the esm exported file but I would assume this is a Bun vs Node issue that is unlikely to have a smooth transition.
I tried to use patch-package but I cannot edit the package file or the file extension with this.
I've moved the code inside my project for now (under MIT) as XML cleaning is a very small part of what I'm doing but a really tricky one to find a good library for in npm.
I've linked this issue to hopefully re-add it as a linked dependency at a later date.