Socket
Socket
Sign inDemoInstall

@babel/compat-data

Package Overview
Dependencies
0
Maintainers
6
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/compat-data


Version published
Maintainers
6
Install size
50.4 kB
Created

Package description

What is @babel/compat-data?

The @babel/compat-data package provides data about the environment features that Babel can target. It includes information about browser and JavaScript engine versions that support various ECMAScript features. This data is used by Babel to determine which transformations and polyfills are necessary for a given target environment.

What are @babel/compat-data's main functionalities?

Environment Data Retrieval

Retrieve compatibility data for the last two versions of browsers. This is used in Babel's preset-env to determine which transformations/polyfills are needed.

"last 2 versions"

Specific Feature Data

Get data about a specific ECMAScript feature, such as arrow functions, to see which environments support it natively.

"es6.arrow-functions"

Other packages similar to @babel/compat-data

Changelog

Source

v7.17.0 (2022-02-02)

:rocket: New Feature
  • babel-cli, babel-core
    • #14065 Allow plugins/presets to indicate external dependencies (@nicolo-ribaudo)
  • babel-core, babel-parser, babel-traverse
    • #14174 Expose .index on Position to internally track nodes location (@tolmasky)
  • babel-generator, babel-parser, babel-plugin-proposal-pipeline-operator, babel-plugin-syntax-pipeline-operator
  • babel-traverse
    • #13940 Add new method to check if node is null or not (@danez)
  • babel-generator, babel-parser, babel-plugin-syntax-destructuring-private, babel-standalone
  • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-proposal-decorators, babel-plugin-syntax-decorators, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-standalone, babel-types
  • babel-generator, babel-parser, babel-traverse, babel-types
  • babel-core, babel-helper-create-regexp-features-plugin, babel-plugin-proposal-unicode-sets-regex, babel-plugin-syntax-unicode-sets-regex, babel-plugin-transform-dotall-regex
  • babel-parser
  • babel-register
:bug: Bug Fix
  • babel-parser
  • babel-plugin-transform-runtime
:memo: Documentation
:house: Internal
  • babel-helper-fixtures, babel-parser
  • babel-compat-data
    • #14208 Update compat data (specifically for rhino 1.7.14) (@phulin)
  • Other
:running_woman: Performance
  • babel-cli, babel-core

Readme

Source

@babel/compat-data

See our website @babel/compat-data for more information.

Install

Using npm:

npm install --save @babel/compat-data

or using yarn:

yarn add @babel/compat-data

Keywords

FAQs

Last updated on 02 Feb 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc