4 ms·
With HTTP/2 server push faltering in production and the real world... it's still best to bundle, but just down to your direct dependencies and with tree shaking
by tehbeard 5y ago
With HTTP/2 server push faltering in production and the real world... it's still best to bundle, but just down to your direct dependencies and with tree shaking
(i.e. react and it's deps become one file, react-dom another, and any common deps between the two become a third "common-vendor.js" file).
and while you're at it, it's not much more effort to take the ESM "evergreen" version, and dump a SystemJS IE11 / "legacy" bundle if needed for a project.