Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-diff

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-diff

Compile all unsupported features for current environments

  • 6.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
212
increased by12.77%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 11 Jan 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc