1

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?

croraf
  • 4,332
  • 2
  • 31
  • 50

2 Answers2

1

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.

Rene Saarsoo
  • 13,580
  • 8
  • 57
  • 85
  • Yes, I thought about something like that. It is an option, but the match with ECMA releases, and a note in their documentation would be very useful. I'll probably open an issue on their github, if I havent done that already. – croraf Oct 24 '18 at 12:35
  • Completely agree. I was searching for this information for my own needs, but I only found this stack overflow question :P – Rene Saarsoo Oct 24 '18 at 16:23
-1

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

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

Nikko Khresna
  • 1,024
  • 8
  • 10