babel-preset-steelbrain
My personal babel preset
Last updated 3 years ago by steelbrain .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-preset-steelbrain 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 5.0.3                                ...           latest (3 years ago)

10 Versions

  • 5.0.3                                ...           3 years ago
  • 5.0.2                                ...           3 years ago
  • 5.0.1                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 11
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |