babel-preset-diff

6.2.1 • Public • Published

babel-preset-diff

Compile all unsupported features for current environments

babel-preset-diff aims to offer the most commonly used Babel presets and plugins so that developers do not have to duplicate and maintain a complex Babel configuration project to project. It also aims to support only the latest Node and browser versions by default.

Usage

Install babel-preset-diff by running

yarn add --dev babel-preset-diff

Add it to your Babel configuration (.babelrc or package.json)

{
  "presets": [
    "diff"
  ]
}

Any configuration options passed into this preset will be passed on to the underlying presets and plugins:

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

Note that by default, babel-preset-diff will compile for the currently running version of Node.js.

Refer to the documentation for babel-preset-env for details on how to target specific browsers.

Readme

Keywords

none

Package Sidebar

Install

npm i babel-preset-diff

Weekly Downloads

198

Version

6.2.1

License

MIT

Unpacked Size

4.34 kB

Total Files

5

Last publish

Collaborators

  • vinsonchuong