5 ms·
They now have two production build variations (I’m guessing two Webpack config): modern: ES6+, less polyfill legacy: ES5, more polyfill The appropriate varia
by wongmjane 6y 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
- axlee 6y agoNote: 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 https://angular.io/guide/deployment#differential-loading
- wongmjane 6y agoupdate: a Twitter engineer explained how they implemented it in greater detail https://twitter.com/charliecroom/status/1291478104016289799 https://twitter.com/charliecroom/status/1291478104016289799