I overhead of the bundle is just damned polyfills you don't need in modern browsers. [...] It was easier on our build stack to do it like that.
Fortunately it's pretty good these days. We support pretty much the last two major versions of any major browser, so JavaScript is in a state where it's pretty solid. We do use polyfills for things that are not supported and that's managed by our build system. We have the Typescript compiler adding in its polyfills. [...] By and large I think most of the JavaScript we're using is pretty standard now, it's pretty well supported. With Babel and preset-env available, it kind of polyfills things that aren't there, so I didn't notice anything. I'm very grateful that the Babel team has made those types of incompatibilities a worry of the past, because everything gets polyfilled automatically. Thank god now we have transpilers which do the dirty job for you. [...] Lately not much concern with JavaScript/ECMAScript/TypeScript compatibility because we have very, very good polyfills and transpilers, so there is not much concern about ECMAScript. 1 1 used to work with full JavaScript but having Webpack to fix different compatibility issues is less work done for better work done. The only concrete example we heard about concerning JavaScript language support came up when asking about Internet Explorer, and was quickly identified and resolved: I think it was a missing polyfill, a JavaScript polyfill [...] Something around Object.entries() or something like that [...] so I just opened the IE devtools, saw the error and understood a polyfill was needed. That was a polyfill available in the core-js library, which is a library that has a lot of polyfills for modern JavaScript features, ES6 and more, and you can cherry-pick the feature you want so that you don't have to import a full library of polyfills, just import the one you need.
Much as we had expected, some participants raised issues which were found in JavaScript code, but which aren't about the JavaScript language itself:
Made with FlippingBook - professional solution for displaying marketing and sales documents online