babel-preset-es2015
babel-preset-es2015
npm i babel-preset-es2015
Deprecated!
πŸ™Œ Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
babel-preset-es2015

babel-preset-es2015

🐠 Babel is a compiler for writing next generation JavaScript.

by babel

6.24.1 (see all)License:MITTypeScript:Not Found
npm i babel-preset-es2015
Readme

babel-preset-es2015

Babel preset for all es2015 plugins.

Install

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

Usage

.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.

Downloads/wk

653K

GitHub Stars

41.7K

LAST COMMIT

9mos ago

MAINTAINERS

6

CONTRIBUTORS

1,107

OPEN ISSUES

637

OPEN PRs

161
VersionTagPublished
6.24.1
latest
6yrs ago
7.0.0-beta.3
next
5yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate