Socket
Socket
Sign inDemoInstall

@babel/helper-member-expression-to-functions

Package Overview
Dependencies
1
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/helper-member-expression-to-functions

Helper function to replace certain member expressions with function calls


Version published
Maintainers
6
Install size
1.03 MB
Created

Package description

What is @babel/helper-member-expression-to-functions?

The @babel/helper-member-expression-to-functions package is a Babel helper that transforms member expressions to functions. It is used internally by Babel plugins to handle transformations of member expressions in a consistent way, especially when dealing with computed properties and ensuring that the base object is only evaluated once.

What are @babel/helper-member-expression-to-functions's main functionalities?

Transforming member expressions into function calls

This feature allows Babel plugins to transform member expressions like `object.property` or `object['property']` into function calls that can handle the logic for computed properties and ensure the base object is evaluated once. This is particularly useful when compiling ES6 code to ES5.

memberExpressionToFunctions(path, visitor, state)

Other packages similar to @babel/helper-member-expression-to-functions

Changelog

Source

v7.15.4 (2021-09-02)

:eyeglasses: Spec Compliance
  • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-class-properties, babel-plugin-proposal-private-methods, babel-plugin-proposal-private-property-in-object, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • #13601 Disallow reinitializing private elements (@komyg)
:bug: Bug Fix
  • #13638 [eslint] Allow "latest" as ecmaVersion (@fisker)
  • babel-traverse, babel-types
    • #13723 getBindingIdentifiers should return params for private methods (@JLHwung)
  • babel-types
  • babel-helper-compilation-targets
  • babel-helper-create-class-features-plugin, babel-plugin-proposal-class-properties, babel-plugin-proposal-private-property-in-object
    • #13656 fix: fix static private field shadowed by local variable (@colinaaa)
  • babel-plugin-transform-typescript
  • babel-parser
  • babel-core
:memo: Documentation
  • babel-parser
:house: Internal
  • babel-helper-create-class-features-plugin, babel-plugin-proposal-class-static-block, babel-plugin-proposal-private-property-in-object, babel-plugin-syntax-class-static-block, babel-plugin-syntax-private-property-in-object, babel-plugin-syntax-top-level-await, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-systemjs, babel-preset-env, babel-standalone
:running_woman: Performance
  • babel-core, babel-generator, babel-helper-annotate-as-pure, babel-helper-builder-binary-assignment-operator-visitor, babel-helper-builder-react-jsx, babel-helper-define-map, babel-helper-explode-assignable-expression, babel-helper-function-name, babel-helper-get-function-arity, babel-helper-hoist-variables, babel-helper-member-expression-to-functions, babel-helper-module-imports, babel-helper-module-transforms, babel-helper-optimise-call-expression, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-simple-access, babel-helper-skip-transparent-expression-wrappers, babel-helper-split-export-declaration, babel-helper-wrap-function, babel-helpers, babel-preset-env, babel-template, babel-traverse
  • babel-cli, babel-helper-define-map, babel-helpers, babel-node, babel-parser, babel-plugin-proposal-async-generator-functions, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-for-of, babel-plugin-transform-modules-systemjs, babel-plugin-transform-parameters, babel-traverse, babel-types

Readme

Source

@babel/helper-member-expression-to-functions

Helper function to replace certain member expressions with function calls

See our website @babel/helper-member-expression-to-functions for more information.

Install

Using npm:

npm install --save-dev @babel/helper-member-expression-to-functions

or using yarn:

yarn add @babel/helper-member-expression-to-functions --dev

FAQs

Last updated on 02 Sep 2021

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