Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-function-name

Package Overview
Dependencies
54
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-transform-function-name

Apply ES2015 function.name semantics to all functions


Version published
Weekly downloads
24M
increased by0.64%
Maintainers
4
Install size
6.69 MB
Created
Weekly downloads
 

Package description

What is @babel/plugin-transform-function-name?

The @babel/plugin-transform-function-name package is a plugin for Babel, a JavaScript compiler, that helps in transforming anonymous function expressions into named function expressions. This can be particularly useful for debugging purposes, as it makes stack traces more informative by providing names for otherwise anonymous functions.

What are @babel/plugin-transform-function-name's main functionalities?

Naming anonymous function expressions

Automatically assigns names to anonymous function expressions, making them easier to identify in stack traces and debugging tools.

const square = function(x) { return x * x; }; // Transforms to: const square = function square(x) { return x * x; };

Enhancing debugging

Improves the debugging experience by ensuring that functions are named, which helps in identifying them in call stacks.

let add = function(a, b) { return a + b; }; // Transforms to: let add = function add(a, b) { return a + b; };

Other packages similar to @babel/plugin-transform-function-name

Changelog

Source

v7.18.9 (2022-07-18)

:bug: Bug Fix
  • babel-plugin-transform-modules-systemjs, babel-types
    • #14763 fix: allow exporting TSDeclareFunction as default (@zxbodya)
  • babel-generator
:nail_care: Polish
:house: Internal
  • babel-core, babel-helper-remap-async-to-generator, babel-helpers, babel-parser, babel-plugin-transform-block-scoping, babel-preset-env
  • babel-helper-create-class-features-plugin, babel-helper-member-expression-to-functions, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-wrap-function, babel-helpers, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-decorators, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-optional-chaining, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-traverse, babel-types
:running_woman: Performance

Readme

Source

@babel/plugin-transform-function-name

Apply ES2015 function.name semantics to all functions

See our website @babel/plugin-transform-function-name for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-transform-function-name

or using yarn:

yarn add @babel/plugin-transform-function-name --dev

Keywords

FAQs

Last updated on 18 Jul 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc