I'm currently trying to understand about babel configuration, but got confused by babel-preset-**
, there are many preset in babel, like env
, es2015
, react
and others, I do understand that babel-preset-es2015
is needed to transpile es2015 code to previous js code so it can be understood by most/older browser, what about babel-preset-env
?
What are the differences between those presets? Can one use env
without using es2015
or vice versa? and what are the cases when we need those two presets to be present on our project build system?
Thank You.
babel-preset-env
now. – Jadam