davidmarkclements / fast-redact

very fast object redaction
MIT License
284 stars 30 forks source link

Publish ESM & CJS version of library #60

Closed jamiehaywood closed 1 year ago

jamiehaywood commented 1 year ago

Given Node 18 fully supports ESM, and there may be ESM projects that want to consume this library, I thought I would raise this issue.

Happy to raise a PR with a vague sketch of how this might be achieved.

mcollina commented 1 year ago

This project can be easily consumed by Node.js projects that are using ESM. Node.js import logic works perfectly with this module.

Do you refer to frontend/browser compatibility?

jamiehaywood commented 1 year ago

sorry, I meant move to ESM first i.e. "type": "module" and publish a CJS version. Please feel free to close if you don't think this is something you want to pursue.

mcollina commented 1 year ago

There is no plan to move it to ESM.