1
votes

Babel-preset-env converts ES2015+ javascript features to compatible code for specified target environments.

But I checked https://babeljs.io/docs/en/babel-preset-env and https://babeljs.io/docs/en/presets, and it doesn't say there which javascript features are supported. It just says stage-x features are not supported.

Is it obvious which Ecmascript releases babel-preset-env supports? Maybe all the way up to ES2018?

2

2 Answers

1
votes

The only information I managed to find about this is in the package.json file of @babel/preset-env. Simply check out the list of dependencies.

0
votes

https://www.w3schools.com/js/js_versions.asp

All syntax and (features of latest javascript, ES6 now)