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

babel-preset-evergreen

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-evergreen

[![npm][npm-badge]][npm-url] [![license][license-badge]][github-url] ![node][node-badge]

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
90
decreased by-62.66%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-evergreen

npm license node

This preset can transform:

  • ECMAScript 2020 syntax
  • Class static properties
  • Decorators

Installation

npm install babel-preset-evergreen --save-dev

Usage

// example: babel.config.json
{
  "presets": [
    [
      "evergreen",
      {
        "polyfill": "usage",
        "targets": { "browsers": ... }
      }
    ]
  ]
}

Options

polyfill

  • type: [ false, 'usage', 'pure' ]
  • default: false

How babel handles polyfills. pure is an experimental option.

References: https://github.com/babel/babel/issues/10008

Install core-js@3 as a top-level dependency when specifying 'usage' or 'pure'.

npm install core-js@3 --save

Keywords

FAQs

Package last updated on 17 May 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