Code Monkey home page Code Monkey logo

babel-preset-evergreen's Introduction

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": {
          "usage": "global"
        }
      }
    ]
  ]
}

Options

polyfill

  • type: false | {}
  • default: false

polyfill.usage

  • type: ['global','pure']
  • default: 'global'

How babel handles polyfills.

References: babel/babel#10008

polyfill.include

  • type: string[]
  • example: ['web.url']

polyfill.exclude

  • type: string[]
  • example: ['web.url']

Tips

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

npm install core-js@3

babel-preset-evergreen's People

Contributors

airkro avatar dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

fossabot

babel-preset-evergreen's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): lock file maintenance

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps): update dependency garou to ^0.7.7
  • chore(deps): update pnpm to v9.7.1

Detected dependencies

github-actions
.github/workflows/bring-it.yaml
npm
package.json
  • @babel/helper-plugin-utils ^7.24.8
  • @babel/preset-env ^7.25.3
  • babel-plugin-polyfill-corejs3 ^0.10.6
  • core-js ^3.38.0
  • core-js-pure ^3.38.0
  • @babel/core ^7.25.2
  • @bring-it/npm ^0.5.7
  • @nice-move/cli ^0.11.14
  • @nice-move/eslint-config-base ^0.11.13
  • @nice-move/prettier-config ^0.12.5
  • ava ^6.1.3
  • eslint ^8.57.0
  • eslint-plugin-ava ^14.0.0
  • garou ^0.7.6
  • prettier ^3.3.3
  • pnpm 9.6.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.