UMD and/or FESM bundles - now tractable with 6.0.0
See original GitHub issueRxJS version:
6
Expected behavior:
Ship a small number of UMD and/or FESM bundles, one for each of the small number of import targets under RxJS 6.
Actual behavior:
For the moment (v6 beta) it looks like there is just a single UMD bundle provided, which can’t support multiple important targets. Please many small files, suitable for application-level bundling.
Additional information:
This thing has been discussed in the past, but there was never a tenable solution (other than SystemJS bundle format, which has less wide use) to ship a small number of bundles that contain the RxJSs code, while still supporting:
import { Observable } from 'rxjs/Observable';
import { of } from 'rxjs/observable/of';
import { map } from 'rxjs/operator/map';
(i.e., how things were through version 5)
But with the new, much smaller number of import targets, for example see this in the current README:
import { Observable, Subject, ReplaySubject, from, of, range } from 'rxjs';
import { map, filter, switchMap } from 'rxjs/operators';
It is now possible to ship a small number of UMD or FESM bundles, one for each of the handful of imports (rxjs
, rxjs/operators
, etc.).
This would take care of use cases for those of us with use cases that consume RxJS directly from something like a CDN, without having to create and publish such a bundle ourselves (as me and a number of others had done historically with SystemJS).
/cc pleading my case to @benlesh @IgorMinar etc 😉
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:13 (2 by maintainers)
If this is all that is required for a system.config.json then I am OK with the current state of the build. Do you see a problem with this @kylecordes ? This is a huge improvement from 5.5 IMHO.
+1 for not wanting to bundle rxjs just for my development environment.