Closed ukstv closed 3 months ago
Yeah, the node ESM stuff has changed (again) since we last updated the packaging. I think we've finally got it all working in Arrow, I just haven't back-ported the changes to the IxJS build system yet.
I wrote the IxJS and Arrow build scripts around the same time and intended to support the same things, so they are very similar. Now just have to port the Arrow updates back here, but haven't had time.
Pals, the project is awesome. Yet, despite all the effort dedicated to packaging, one can not use it in Node16, from ES modules.
First, you do not use conditional exports to specify import paths like
ix/asynciterable
orix/asynciterable/operators
.Second, the JS code which is supposed to conform to ES modules format uses extension-less imports. For example, in
ix-esnext-esm/asynciterable/index.js
one could find a line likeexport * from './batch';
It should beexport * from './batch.js';
for Node to parse it.Let me know if I can help with moving this to pure ESM. Now it sucks, and it is a great disappointment for me. I am willing to volunteer here.