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

@babel/plugin-external-helpers

Package Overview
Dependencies
Maintainers
4
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-external-helpers

This plugin contains helper functions that’ll be placed at the top of the generated code

  • 7.24.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
360K
decreased by-8.08%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-external-helpers?

@babel/plugin-external-helpers is a Babel plugin that allows you to use Babel's helper functions from an external source rather than including them in every file. This can help reduce the overall bundle size by avoiding duplication of helper functions across multiple files.

What are @babel/plugin-external-helpers's main functionalities?

Externalizing Babel Helpers

This configuration in your Babel setup will enable the use of external helpers. Instead of including Babel's helper functions in every file, they will be imported from an external source, reducing redundancy and potentially decreasing the bundle size.

module.exports = {
  plugins: [
    '@babel/plugin-external-helpers'
  ]
};

Using with a Custom Helper Library

You can specify a custom version of the helper library to use. This is useful if you have a specific version of Babel's helpers that you want to ensure compatibility with.

module.exports = {
  plugins: [
    ['@babel/plugin-external-helpers', {
      helperVersion: '7.0.0'
    }]
  ]
};

Other packages similar to @babel/plugin-external-helpers

Keywords

FAQs

Package last updated on 05 Jun 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