Socket
Socket
Sign inDemoInstall

@babel/helper-define-map

Package Overview
Dependencies
18
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/helper-define-map

Helper function to define a map


Version published
Maintainers
4
Install size
4.41 MB
Created

Package description

What is @babel/helper-define-map?

The @babel/helper-define-map package is a helper module used by Babel plugins to define a map of properties on a given object. It is typically used to generate the definitions for an object's methods or properties in a way that is compatible with Babel's internal AST structures.

What are @babel/helper-define-map's main functionalities?

Define properties on an object

This feature allows you to define methods or properties on an object within the Babel transformation process. The code sample represents an AST (Abstract Syntax Tree) structure that defines a method named 'methodName' on an object.

{"type":"ObjectExpression","properties":[{"key":{"type":"Identifier","name":"methodName"},"value":{"type":"FunctionExpression","params":[],"body":{"type":"BlockStatement","body":[]},"generator":false,"async":false},"kind":"method"}]}

Other packages similar to @babel/helper-define-map

Changelog

Source

v7.18.0 (2022-05-19)

:rocket: New Feature
  • babel-preset-env
    • #14556 feat: add import-assertions to shippedProposals (@JLHwung)
  • babel-helper-create-class-features-plugin, babel-helper-define-map, babel-plugin-proposal-class-static-block, babel-plugin-proposal-destructuring-private, babel-plugin-proposal-object-rest-spread, babel-plugin-syntax-destructuring-private, babel-plugin-transform-destructuring, babel-plugin-transform-proto-to-assign, babel-plugin-transform-typescript, babel-standalone, babel-traverse, babel-types
  • babel-generator, babel-parser, babel-types
  • babel-generator, babel-parser
  • babel-generator, babel-parser, babel-plugin-transform-typescript, babel-traverse, babel-types
  • babel-helper-module-transforms, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd
:bug: Bug Fix
  • babel-types
  • babel-parser
    • #14557 Fix parsing of < after object literals with the jsx plugin (@JLHwung)
  • babel-plugin-transform-react-pure-annotations
    • #14528 fix: do not mark computed React[...] methods as pure (@JLHwung)
:nail_care: Polish
  • babel-core, babel-helper-transform-fixture-test-runner, babel-helpers, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-async-to-generator, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-standalone
:house: Internal
  • babel-core, babel-helper-create-class-features-plugin, babel-plugin-proposal-decorators, babel-plugin-transform-modules-systemjs

Readme

Source

@babel/helper-define-map

Helper function to define a map

See our website @babel/helper-define-map for more information.

Install

Using npm:

npm install --save @babel/helper-define-map

or using yarn:

yarn add @babel/helper-define-map

FAQs

Last updated on 19 May 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