You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/plugin-external-helpers

Package Overview
Dependencies
Maintainers
4
Versions
71
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


Version published
Weekly downloads
379K
decreased by-1.47%
Maintainers
4
Install size
18.0 kB
Created
Weekly downloads
 

Package description

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

Changelog

Source

v7.22.5 (2023-06-08)

:bug: Bug Fix
  • babel-preset-env, babel-standalone
    • #15675 Fix using syntax-unicode-sets-regex in standalone (@nicolo-ribaudo)
:nail_care: Polish

Readme

Source

@babel/plugin-external-helpers

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

See our website @babel/plugin-external-helpers for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-external-helpers

or using yarn:

yarn add @babel/plugin-external-helpers --dev

Keywords

FAQs

Package last updated on 08 Jun 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc