Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

babel-preset-steelbrain

steelbrain44MIT5.0.3

My personal babel preset

steelbrain, babel

readme

Babel-Preset

Greenkeeper badge

This is my babel preset that aims at the latest ES features (stage-0) while having React and decorator support as well. By default this preset blacklists only one transpiler, and that is the regenerator one, It does so that you don't have to include regenerator runtime in your frontend of node applications because Node has had generator support for quite some time.

Installation

npm install --save babel-preset-steelbrain

Usage

In your .eslintrc

{
  "presets": ["steelbrain"]
}

or in CLI

babel --presets steelbrain
# For example:
# babel --presets steelbrain src --out-dir lib

Configuration

You can blacklist or configure this preset similar to how you control behavior or babel-preset-env. For example:

Blacklisting the var/const transform

{
  "presets": [
    ["steelbrain", {
      "exclude": ["transform-es2015-block-scoping"]
    }]
  ]
}

Blacklisting ES Modules transpilation

{
  "presets": [
    ["steelbrain", {
      "modules": false
    }]
  ]
}

LICENSE

This module is licensed under the terms of MIT License, check the LICENSE file for more info.

changelog

5.0.2

  • Allow overriding exclusion of regenerator transform through configuration

5.0.1

  • Allow specifying excludes from preset configuration

5.0.0

  • Move away from babel-preset-es2015-sane towards babel-preset-env, having same output except that it's maintained officially and points to latest version deps

4.0.2

  • Remove the flow pragma to remove an unnecessary flow warnings

4.0.1

  • Use babel-preset-es2015-sane instead of babel-preset-es2015 to remove dependency on regenerator runtime

4.0.0

  • Add support for decorators
  • Depend on presets directly and include fix for Missing class properties transform

3.0.0

  • Skipped because of a deployment error

2.0.1

  • Depend on all the transforms directly, It fixes the conflict between flow and class transform that was triggering an error Missing class properties transform.

2.0.0

  • Merge steelbrain-flow and steelbrain-async preset in
  • Extend ES2015 and drop transform-regenerator from it
  • Extend react

Pre 2.0.0

  • A babel preset that transforms a few ES2015 features