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

@babel/helper-optimise-call-expression

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/helper-optimise-call-expression

Helper function to optimise call expression


Version published
Weekly downloads
26M
increased by0.19%
Maintainers
4
Install size
2.43 MB
Created
Weekly downloads
 

Package description

What is @babel/helper-optimise-call-expression?

@babel/helper-optimise-call-expression is a utility package within the Babel ecosystem designed to optimize call expressions in JavaScript code. It helps in transforming and optimizing function calls to improve performance and efficiency during the code compilation process.

What are @babel/helper-optimise-call-expression's main functionalities?

Optimize Call Expressions

This feature optimizes a call expression by transforming the function call to a more efficient form. The code sample demonstrates how to use the `optimiseCallExpression` function to optimize a call to `myFunction` with arguments `1` and `2`.

const { default: optimiseCallExpression } = require('@babel/helper-optimise-call-expression');
const t = require('@babel/types');

const callee = t.identifier('myFunction');
const args = [t.numericLiteral(1), t.numericLiteral(2)];
const optimizedCall = optimiseCallExpression(callee, null, args);

console.log(optimizedCall);

Other packages similar to @babel/helper-optimise-call-expression

Changelog

Source

v7.24.7 (2024-06-05)

:bug: Bug Fix
  • babel-node
    • #16554 Allow extra flags in babel-node (@nicolo-ribaudo)
  • babel-traverse
  • babel-helper-transform-fixture-test-runner, babel-plugin-proposal-explicit-resource-management
:house: Internal
  • babel-helpers, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

Readme

Source

@babel/helper-optimise-call-expression

Helper function to optimise call expression

See our website @babel/helper-optimise-call-expression for more information.

Install

Using npm:

npm install --save @babel/helper-optimise-call-expression

or using yarn:

yarn add @babel/helper-optimise-call-expression

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc