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

babel-preset-evergreen

Package Overview
Dependencies
Maintainers
0
Versions
61
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 modern javascript syntaxes

  • 0.9.17
  • Source
  • npm
  • Socket score

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

babel-preset-evergreen logo

A babel preset for modern javascript syntaxes.

npm github node

This preset can transform:

  • ECMAScript 2024 syntax

Installation

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

Usage

// example: babel.config.json
{
  "targets": "chrome >= 60",
  "presets": [
    [
      "evergreen",
      {
        "polyfill": "global"
      }
    ]
  ]
}

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

Tips

You might need to pin core-js@3 when your project dependency tree has core-js@2:

npm install core-js@3

Keywords

FAQs

Package last updated on 24 Jul 2024

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