Hacker News new | ask | show | jobs
by wongmjane 2149 days ago
They now have two production build variations (I’m guessing two Webpack config):

modern: ES6+, less polyfill

legacy: ES5, more polyfill

The appropriate variation is served by detecting browser’s version from the User-Agent string

2 comments

Note: since v8.0, Angular comes with built-in differential loading and will do all the heavy lifting to achieve exactly that.

https://angular.io/guide/deployment#differential-loading

update: a Twitter engineer explained how they implemented it in greater detail

https://twitter.com/charliecroom/status/1291478104016289799