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 3 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 (3 years ago)
  • 7.0.0-beta.3                                ...           next (3 years ago)

44 Versions

  • 7.0.0-beta.3 [deprecated]           ...           3 years ago
  • 7.0.0-beta.2 [deprecated]           ...           3 years ago
  • 7.0.0-beta.1 [deprecated]           ...           3 years ago
  • 7.0.0-beta.0 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.20 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.19 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.18 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.17 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.16 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.15 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.14 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.12 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.11 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.10 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.9 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.8 [deprecated]           ...           3 years ago
  • 6.24.1 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.7 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.3 [deprecated]           ...           3 years ago
  • 6.24.0 [deprecated]           ...           3 years ago
  • 7.0.0-alpha.1 [deprecated]           ...           3 years ago
  • 6.22.0 [deprecated]           ...           4 years ago
  • 6.18.0 [deprecated]           ...           4 years ago
  • 6.16.0 [deprecated]           ...           4 years ago
  • 6.14.0 [deprecated]           ...           4 years ago
  • 6.13.2 [deprecated]           ...           4 years ago
  • 6.13.1 [deprecated]           ...           4 years ago
  • 6.13.0 [deprecated]           ...           4 years ago
  • 6.9.0 [deprecated]           ...           4 years ago
  • 6.6.0 [deprecated]           ...           4 years ago
  • 6.5.0-1 [deprecated]           ...           5 years ago
  • 6.5.0 [deprecated]           ...           5 years ago
  • 6.3.13 [deprecated]           ...           5 years ago
  • 6.2.4 [deprecated]           ...           5 years ago
  • 6.1.18 [deprecated]           ...           5 years ago
  • 6.1.17 [deprecated]           ...           5 years ago
  • 6.1.4 [deprecated]           ...           5 years ago
  • 6.1.2 [deprecated]           ...           5 years ago
  • 6.0.15 [deprecated]           ...           5 years ago
  • 6.0.14 [deprecated]           ...           5 years ago
  • 6.0.12 [deprecated]           ...           5 years ago
  • 6.0.11 [deprecated]           ...           5 years ago
  • 6.0.8 [deprecated]           ...           5 years ago
  • 6.0.2 [deprecated]           ...           5 years ago
Downloads
Today 1,994
This Week 8,831
This Month 29,598
Last Day 3,381
Last Week 19,026
Last Month 86,858
Dependents (10057)