Join GitHub today
Hi @kentcdodds, I am still getting my head around this new preset.
Because not all browsers support new feature of ES, if you want to use those features, you need babel preset to transpile it so browsers can understand them. At this point, I understand the purpose of preset like es2015, es2016,...
And gradually browsers adopt more new ES features, it's no point in transpile and send polyfills down to client anymore, that's why they introduce babel-preset-env
Here are my questions:
We have the option to specify the browsers we want to target, e.g.
1/ How does babel know which browser has what features so it does not need to transpile those features?