New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-evergreen

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-evergreen

A `babel` preset for popular javascript syntaxes

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
135
increased by14.41%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-evergreen

A babel preset for popular javascript syntaxes.

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": "global",
        "targets": { "browsers": ... }
      }
    ]
  ]
}

Options

polyfill

  • type: [ false, 'global', '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 'global' or 'pure'.

npm install core-js@3 --save

Keywords

FAQs

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