mkoncz / ivosjatek

Drinking game with React.
https://ivosjatek.hu
MIT License
0 stars 0 forks source link

Avoid serving legacy JavaScript to modern browsers #377

Open mkoncz opened 2 years ago

mkoncz commented 2 years ago

Polyfills and transforms enable legacy browsers to use new JavaScript features. However, many aren't necessary for modern browsers. For your bundled JavaScript, adopt a modern script deployment strategy using module/nomodule feature detection to reduce the amount of code shipped to modern browsers, while retaining support for legacy browsers

mkoncz commented 2 years ago

https://philipwalton.com/articles/deploying-es2015-code-in-production-today/