rxjs
rxjs copied to clipboard
Ensure we're properly supporting ESM in Node
See the write up by @Rich-Harris here:
https://github.com/d3/d3/issues/3469
(cries internally)
It would be great (and compliant) if rxjs shipped
dist/esm/*.mjs
instead if
dist/esm/*.js
(ie use .mjs extension, but only in esm folders)
The reson for this is that some tooling assumes (correctly) that .js means it's .cjs (in the absence of "type": "module" in the nearest package.json) and breaks and there is no way to override this behavior?