Search code examples
babeljsbabel-preset-env

Which plugins (javascript features) does babel-preset-env support?


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?


Solution

  • 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.