@philipwalton ES5 is not only IE11, but also Opera Mini, which is still popular in the third world: https://raddevon.com/articles/where-are-opera-mini-users/
Top-level
@philipwalton ES5 is not only IE11, but also Opera Mini, which is still popular in the third world: https://raddevon.com/articles/where-are-opera-mini-users/ 4 comments
@philipwalton Yes, but Opera Mini at least partially supports ES5: https://caniuse.com/?compare=op_mini+all&compareCats=all so transpiling to ES5 still has some small benefit. @niutech if a site needs to support Opera Mini, then I agree it makes sense to transpile to ES5 for those users. But the point I make in my article is that you shouldn't transpile to ES5 and then just *assume* your site fully works in Opera Mini—because my guess is it probably doesn't. Opera Mini is a very particular browser, and supporting it requires manual testing. @niutech also, as an FYI in case you were curious, Babel's preset-env plugin does not support Opera Mini, see: https://babeljs.io/docs/babel-preset-env#caveats |
@niutech my understanding is that due to the way Opera Mini compresses assets, it's never handled JavaScript sites well, regardless of what APIs they were using (which is partly why Babel has never supported Opera Mini in its preset-env plugin).
So if you need to support Opera Mini then you need to make sure your site works well without JavaScript in general (a build tool is still not going to help).