![From Academia to Industry](https://cdn.sanity.io/images/cgdhsj6q/production/70501690bf807891573e259da9719cf24302c7e3-4288x2848.jpg?w=400&fit=max&auto=format)
Employee Spotlight
From Academia to Industry
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.
@babel/compat-data
Advanced tools
Package description
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.
Changelog
v7.22.6 (2023-07-04)
babel-compat-data
, babel-helper-compilation-targets
, babel-preset-env
babel-plugin-transform-optional-chaining
delete a?.b
in function params (@nicolo-ribaudo)babel-helper-split-export-declaration
, babel-plugin-transform-modules-commonjs
babel-compat-data
, babel-preset-env
babel-helpers
, babel-plugin-proposal-explicit-resource-management
, babel-runtime-corejs3
, babel-runtime
@@asyncDispose
(@nicolo-ribaudo)babel-standalone
stage-2
(@liuxingbaoyu)babel-core
--frozen-intrinsics
(@liuxingbaoyu)babel-helper-create-class-features-plugin
, babel-plugin-transform-classes
babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-transform-class-properties
, babel-plugin-transform-optional-chaining
, babel-plugin-transform-typescript
?.
(@nicolo-ribaudo)babel-plugin-proposal-destructuring-private
, babel-plugin-proposal-do-expressions
, babel-plugin-proposal-pipeline-operator
, babel-plugin-transform-class-properties
, babel-plugin-transform-nullish-coalescing-operator
, babel-plugin-transform-optional-chaining
, babel-plugin-transform-private-property-in-object
, babel-traverse
Readme
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
FAQs
Unknown package
The npm package @babel/compat-data receives a total of 34,500,616 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.
Employee Spotlight
Philipp Burckhardt recounts his journey from childhood computer fascinations, to building an e-learning platform at Carnegie Mellon University, and on to his current role at Socket.
Security News
Git dependencies in open source packages can introduce significant risks, including lack of version control, stability issues, dependency drift, and difficulty in auditing, making them potential targets for supply chain attacks.
Security News
Node.js has added experimental support for TypeScript, a move that highlights the growing importance of TypeScript in modern development.