3 ms·
New syntax can obsolete older browsers, but it doesn't necessarily have to in the age of Babel and Typescript. Babel can already translate ES2018 async iterato
by jsheard 9y ago
New syntax can obsolete older browsers, but it doesn't necessarily have to in the age of Babel and Typescript.
Babel can already translate ES2018 async iterators and rest/spread into ES5 code that works pretty much everywhere.
- akvadrako 9y agoIf you are using babel there is no need for the new browsers to support the new syntax at all.
- always_good 9y agoSure there are. For example, your bundle size shrinks when targeting newer browsers because more features exist, fewer need to be polyfilled.
- akvadrako 9y agoThen you must prepare two bundles, one for new browsers and one for old. I suppose that's possible, but doesn't seem worth it.