Nikolay Botev
Nikolay Botev
FYI, the current implementation of `yield *` also exhibits the same kind of awkward behavior of not processing the first value received from `next()`: > yield* calls the iterator's next()...
For context, here is some history: Many years ago, during my career as a Java engineer, I had the opportunity to welcome the benefits of a lazy pull streams library...
I tried the above example under ESM and discovered another caveat! ESM loads and initializes all imported modules before executing any code, and so both places in the example have...
Maybe these are not real-world scenarios, but I am also discovering that babel does not seem to transpile ESM `await import()` to valid `require` syntax that Node.js (22.8.0) can understand:...
... I am starting to wonder how deno will behave in this context...
So the solution to the ESM non-dynamic import problem is to pull the block of code into its own file. This is something to be done from the entry point...
There is a specific babel configuration needed to make this work as well, in terms of ensuring runtime helpers are installed only once on the entire bundle to ensure a...
There is now a commonjs version of the sample as well in te commonjs branch here: https://github.com/nikolaybotev/async-iterator-helpers-demo/tree/commonjs