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

babel-plugin-polyfill-corejs2

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-polyfill-corejs2

A Babel plugin to inject imports to core-js@2 polyfills

  • 0.4.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23M
decreased by-0.8%
Maintainers
1
Weekly downloads
 
Created

What is babel-plugin-polyfill-corejs2?

The babel-plugin-polyfill-corejs2 package is designed to automatically replace ES2015+ code with equivalent down-leveled code that includes polyfills from the core-js library version 2. This allows developers to write modern JavaScript without worrying about the support in older environments. It's particularly useful for ensuring that new JavaScript features work across all browsers that a web application supports.

What are babel-plugin-polyfill-corejs2's main functionalities?

Automatic Polyfilling

Automatically detects the usage of ES2015+ features in your code and includes the necessary polyfills from core-js v2. This means you don't have to manually import or require polyfills in your code, reducing the bundle size and improving performance.

"useBuiltIns": "usage"

Configurable Environment

Allows you to specify the target environments for your application. Babel will use this information to determine which polyfills are necessary based on the features supported by those environments, ensuring that your code runs smoothly across different browsers.

{
  "targets": {
    "chrome": "58",
    "ie": "11"
  }
}

Other packages similar to babel-plugin-polyfill-corejs2

Keywords

FAQs

Package last updated on 11 Nov 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