I realized yesterday when talking to
@wolframkriesing that ESM modules have an
important use case: code-splitting in frontend applications.

Especially apps that deliver large bundles (>2 MB) and/or update them very
often (e.g. do trunk based development) will benefit.
/status/1350005313655730177

Sat, 16 Jan 2021 12:10:16 UTC11

1 reply

Replying to @coderbyheart

Using ESM your app will only the dependencies it needs (instead of waiting for
the big bundle to finish downloading). Startup speeds will improve and code
paths that have no changes will be served from the browser cache.