Socket
Socket
Sign inDemoInstall

babel-preset-diff

Package Overview
Dependencies
184
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-diff

Compile all unsupported features for current environments


Version published
Maintainers
1
Weekly downloads
236
decreased by-0.84%

Weekly downloads

Readme

Source

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.

FAQs

Last updated on 11 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc