babel-preset-latest

Babel preset including es2015+

💥 preset-latest accomplishes the same task as babel-preset-env. 🙏 Please install it with 'npm install babel-preset-env --save-dev'. '{ "presets": ["latest"] }' to '{ "presets": ["env"] }'. For more info, please check the docs: http://babeljs.io/docs/plugins/preset-env 👌. And let us know how you're liking Babel at @babeljs on 🐦
Last updated 8 years ago by hzoo .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install babel-preset-latest 
SYNC missed versions from official npm registry.

babel-preset-latest

Babel preset including es2015, es2016, es2017.

Install

npm install --save-dev babel-preset-latest

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["latest"]
}

Via CLI

babel script.js --presets latest

Via Node API

require("babel-core").transform("code", {
  presets: ["latest"]
});

Options

es2015

boolean, defaults to true.

Toggles including plugins from the es2015 preset.

{
  "presets": [
    ["latest", {
      "es2015": false
    }]
  ]
}

You can also pass options down to the es2015 preset.

{
  "presets": [
    ["latest", {
      "es2015": {
        "modules": false
      }
    }]
  ]
}

Note: This also works for the other preset-year options below.

es2016

boolean, defaults to true.

Toggles including plugins from the es2016 preset.

es2017

boolean, defaults to true.

Toggles including plugins from the es2017 preset.

Current Tags

  • 6.24.1                                ...           latest (8 years ago)
  • 7.0.0-alpha.7                                ...           next (8 years ago)

9 Versions

  • 6.24.1 [deprecated]           ...           8 years ago
  • 7.0.0-alpha.7 [deprecated]           ...           8 years ago
  • 7.0.0-alpha.3 [deprecated]           ...           8 years ago
  • 6.24.0 [deprecated]           ...           8 years ago
  • 7.0.0-alpha.1 [deprecated]           ...           8 years ago
  • 6.22.0 [deprecated]           ...           8 years ago
  • 6.16.0 [deprecated]           ...           8 years ago
  • 6.14.0 [deprecated]           ...           8 years ago
  • 1.0.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |