ReactiveX / rxjs

A reactive programming library for JavaScript
https://rxjs.dev
Apache License 2.0
30.83k stars 3.01k forks source link

RxJs ships generators instead of native async/await #7422

Closed JeanMeche closed 11 months ago

JeanMeche commented 11 months ago

Describe the bug

Talking about v7:

Looking at files like /rxjs/dist/esm/internal/observable/innerFrom.js, it looks like rxjs is shipping code where native async/awaits are converted to generators.

I don't think that's up to the lib to do that conversion.

Soon, zoneless Angular apps should be able to build without using @babel/plugin-transform-async-to-generator (required by zone.js. So I would expect rxjs to ship native async/await and reduce its footprint.

Version

7.8.1

kwonoj commented 11 months ago

https://github.com/ReactiveX/rxjs/issues/5270

We won't make breaking changes to the target platform we support in v7. If we change transpilation target, consumer need to separately transpile 3rd party pkg (rxjs).