Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@babel/compat-data
Advanced tools
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.
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"
Provides compatibility data for core-js, a library that includes polyfills for ECMAScript features. It is similar to @babel/compat-data but focuses on the features polyfilled by core-js.
A lighter version of caniuse-db, containing browser support tables for front-end technologies. It is similar to @babel/compat-data in that it provides compatibility data, but it is more general and not specific to Babel's needs.
A tool for sharing target browsers and Node.js versions between different front-end tools. It is similar to @babel/compat-data in that it helps determine which environments to target, but it does not provide specific feature support data.
The compat-data to determine required Babel plugins
See our website @babel/compat-data for more information.
Using npm:
npm install --save @babel/compat-data
or using yarn:
yarn add @babel/compat-data
v7.26.5 (2025-01-10)
babel-parser
import.defer()
form of import defer
(@babel-bot)babel-plugin-transform-block-scoped-functions
isInStrictMode
in Babel 7 (@liuxingbaoyu)babel-plugin-transform-typescript
babel-parser
@(a.b)()
(@liuxingbaoyu)babel-generator
, babel-parser
, babel-plugin-transform-flow-strip-types
, babel-types
babel-compat-data
, babel-preset-env
transform-typeof-symbol
compat data (@liuxingbaoyu)babel-generator
, babel-parser
, babel-types
babel-plugin-transform-nullish-coalescing-operator
FAQs
The compat-data to determine required Babel plugins
The npm package @babel/compat-data receives a total of 36,203,727 weekly downloads. As such, @babel/compat-data popularity was classified as popular.
We found that @babel/compat-data demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.