Closed jamiehaywood closed 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?
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.
There is no plan to move it to ESM.
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.