Skip to main content

@babel/preset-es2017

danger

As of Babel v6, all the yearly presets have been deprecated. We recommend using @babel/preset-env instead.

Install

npm install --save-dev @babel/preset-es2017

Usage

babel.config.json
{
"presets": ["@babel/preset-es2017"]
}

Via CLI

Shell
babel script.js --presets @babel/preset-es2017

Via Node API

JavaScript
require("@babel/core").transformSync("code", {
presets: ["@babel/preset-es2017"]
});