babel-preset-es2015

Babel preset for all es2015 plugins.

🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read 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 (a year ago)

44 Versions

  • 7.0.0-beta.3                                ...           a year ago
  • 7.0.0-beta.2                                ...           a year ago
  • 7.0.0-beta.1                                ...           a year ago
  • 7.0.0-beta.0                                ...           a year ago
  • 7.0.0-alpha.20                                ...           a year ago
  • 7.0.0-alpha.19                                ...           a year ago
  • 7.0.0-alpha.18                                ...           a year ago
  • 7.0.0-alpha.17                                ...           a year ago
  • 7.0.0-alpha.16                                ...           a year ago
  • 7.0.0-alpha.15                                ...           a year ago
  • 7.0.0-alpha.14                                ...           a year ago
  • 7.0.0-alpha.12                                ...           a year ago
  • 7.0.0-alpha.11                                ...           a year ago
  • 7.0.0-alpha.10                                ...           a year ago
  • 7.0.0-alpha.9                                ...           2 years ago
  • 7.0.0-alpha.8                                ...           2 years ago
  • 6.24.1 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.7                                ...           2 years ago
  • 7.0.0-alpha.3                                ...           2 years ago
  • 6.24.0 [deprecated]           ...           2 years ago
  • 7.0.0-alpha.1                                ...           2 years ago
  • 6.22.0 [deprecated]           ...           2 years ago
  • 6.18.0 [deprecated]           ...           2 years ago
  • 6.16.0 [deprecated]           ...           2 years ago
  • 6.14.0 [deprecated]           ...           2 years ago
  • 6.13.2 [deprecated]           ...           2 years ago
  • 6.13.1 [deprecated]           ...           2 years ago
  • 6.13.0 [deprecated]           ...           2 years ago
  • 6.9.0 [deprecated]           ...           2 years ago
  • 6.6.0 [deprecated]           ...           3 years ago
  • 6.5.0-1                                ...           3 years ago
  • 6.5.0 [deprecated]           ...           3 years ago
  • 6.3.13 [deprecated]           ...           3 years ago
  • 6.2.4 [deprecated]           ...           3 years ago
  • 6.1.18 [deprecated]           ...           3 years ago
  • 6.1.17 [deprecated]           ...           3 years ago
  • 6.1.4 [deprecated]           ...           3 years ago
  • 6.1.2 [deprecated]           ...           3 years ago
  • 6.0.15 [deprecated]           ...           3 years ago
  • 6.0.14 [deprecated]           ...           3 years ago
  • 6.0.12 [deprecated]           ...           3 years ago
  • 6.0.11 [deprecated]           ...           3 years ago
  • 6.0.8 [deprecated]           ...           3 years ago
  • 6.0.2 [deprecated]           ...           3 years ago
Downloads
Today 1,229
This Week 4,975
This Month 26,901
Last Day 3,746
Last Week 16,141
Last Month 83,413
Dependents (8696)