babel-preset-es2015

Babel preset for all es2015 plugins.

🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
Last updated 2 years ago by hzoo .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install babel-preset-es2015 
SYNC missed versions from official npm registry.

babel-preset-es2015

Babel preset for all es2015 plugins.

Install

npm install --save-dev babel-preset-es2015

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["es2015"]
}

Via CLI

babel script.js --presets es2015

Via Node API

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

Options

loose

boolean, defaults to false.

Enable "loose" transformations for any plugins in this preset that allow them.

modules

"amd" | "umd" | "systemjs" | "commonjs" | false, defaults to "commonjs".

Enable transformation of ES6 module syntax to another module type.

Setting this to false will not transform modules.

spec

boolean, defaults to false.

Enable "spec" transformations for any plugins in this preset that allow them.

Current Tags

  • 6.24.1                                ...           latest (2 years ago)
  • 7.0.0-beta.3                                ...           next (2 years ago)

44 Versions

  • 7.0.0-beta.3 [deprecated]           ...           2 years ago
  • 7.0.0-beta.2 [deprecated]           ...           2 years ago
  • 7.0.0-beta.1 [deprecated]           ...           2 years ago
  • 7.0.0-beta.0 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.20 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.19 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.18 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.17 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.16 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.15 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.14 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.12 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.11 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.10 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.9 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.8 [deprecated]           ...           2 years ago
  • 6.24.1 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.7 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.3 [deprecated]           ...           2 years ago
  • 6.24.0 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.1 [deprecated]           ...           2 years ago
  • 6.22.0 [deprecated]           ...           2 years ago
  • 6.18.0 [deprecated]           ...           3 years ago
  • 6.16.0 [deprecated]           ...           3 years ago
  • 6.14.0 [deprecated]           ...           3 years ago
  • 6.13.2 [deprecated]           ...           3 years ago
  • 6.13.1 [deprecated]           ...           3 years ago
  • 6.13.0 [deprecated]           ...           3 years ago
  • 6.9.0 [deprecated]           ...           3 years ago
  • 6.6.0 [deprecated]           ...           3 years ago
  • 6.5.0-1 [deprecated]           ...           3 years ago
  • 6.5.0 [deprecated]           ...           3 years ago
  • 6.3.13 [deprecated]           ...           4 years ago
  • 6.2.4 [deprecated]           ...           4 years ago
  • 6.1.18 [deprecated]           ...           4 years ago
  • 6.1.17 [deprecated]           ...           4 years ago
  • 6.1.4 [deprecated]           ...           4 years ago
  • 6.1.2 [deprecated]           ...           4 years ago
  • 6.0.15 [deprecated]           ...           4 years ago
  • 6.0.14 [deprecated]           ...           4 years ago
  • 6.0.12 [deprecated]           ...           4 years ago
  • 6.0.11 [deprecated]           ...           4 years ago
  • 6.0.8 [deprecated]           ...           4 years ago
  • 6.0.2 [deprecated]           ...           4 years ago
Downloads
Today 665
This Week 3,967
This Month 40,897
Last Day 3,302
Last Week 18,390
Last Month 71,290
Dependents (9375)