Re:TypeScript team released an explorer for performance tuning
by jeroenhd on Saturday May 13, 2023 @10:45AM
(#35928899)
I like the idea of JS modules but they don't entirely negate the need for bundling. Sending a single compressed, tree shaken, minified JS file down the pipe can be a lot more efficient than waiting for the browser to load all those files.
Theoretically HTTP/2 push could've helped here, forcing the necessary files into the browser cache, but that's been removed from browsers.
[1] https://github.com/tc39/proposal-type-annotations
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...