Re:JavaScript-heavy approaches are not compatible with long-...
by hinkley on Monday February 16, 2026 @01:19PM
(#47038284)
RXJS is also 18 MB which is irritating in a backend but completely bonkers in a frontend.
[ Parent
| on HN ]
Re:JavaScript-heavy approaches are not compatible with long-...
by azangru on Monday February 16, 2026 @01:26PM
(#47038354)
> RXJS is also 18 MB
This is impossible. I think you are off by about a factor of 1000.
Re:JavaScript-heavy approaches are not compatible with long-...
by WorldMaker on Monday February 16, 2026 @05:13PM
(#47041053)
The entire npm package is 4.5 MBs uncompressed, and that includes a lot of files that won't be included in a modern bundle. A simple `npx esbuild --bundle ./node_modules/rxjs/dist/esm/index.js --outfile=./vendor/rxjs.js --format=esm` gives me a 141 kb file before compression.
If you are seeing 18 MBs in your bundle from npm you may have more than copy or something else wrong.
I will complain that RxJS still doesn't have a proper ESM build in 2026 for even better tree-shaking because that is apparently waiting on the WICG Observables "Proposal" to complete, and cynically I still don't think it is going to happen and I would love real ESM from RxJS someday like yesterday.