4 ms·
> And then people go "but you can use ESM in browsers without a build step!", apparently not realizing that that is an utterly useless feature because loading a
by amadeuspagel 3y ago
> And then people go "but you can use ESM in browsers without a build step!", apparently not realizing that that is an utterly useless feature because loading a full dependency tree over the network would be unreasonably and unavoidably slow - you'd need as many roundtrips as there are levels of depth in your dependency tree - and so you need some kind of build step anyway, eliminating this entire supposed benefit.
This is not true if you use a CDN like esm.sh[1] or skypack[2].
[1]: https://esm.sh/ https://esm.sh/
[2]: https://www.skypack.dev/ https://www.skypack.dev/