rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

Ensure we're properly supporting ESM in Node

Open benlesh opened this issue 4 years ago • 3 comments

See the write up by @Rich-Harris here:

https://github.com/d3/d3/issues/3469

benlesh avatar Feb 17 '21 22:02 benlesh

(cries internally)

benlesh avatar Feb 17 '21 22:02 benlesh

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?

tomastrajan avatar Dec 22 '22 17:12 tomastrajan