@babel/plugin-transform-destructuring

  • Version 8.0.1
  • Published
  • 78.1 kB
  • 1 dependency
  • MIT license

Install

npm i @babel/plugin-transform-destructuring
yarn add @babel/plugin-transform-destructuring
pnpm add @babel/plugin-transform-destructuring

Overview

Compile ES2015 destructuring to ES5

Index

Functions

function _default

_default: (
api: _babel_core.PluginAPI,
options: Options,
dirname: string
) => _babel_core.PluginObject<any>;

    function buildObjectExcludingKeys

    buildObjectExcludingKeys: <T extends ExcludingKey>(
    excludedKeys: T[],
    objRef: types.Expression,
    scope: Scope,
    addHelper: File,
    objectRestNoSymbols: boolean,
    useBuiltIns: boolean
    ) => types.CallExpression;

      function unshiftForXStatementBody

      unshiftForXStatementBody: (
      statementPath: NodePath<types.ForXStatement>,
      newStatements: types.Statement[]
      ) => void;

        Interfaces

        interface Options

        interface Options {}

          property allowArrayLike

          allowArrayLike?: boolean;

            property loose

            loose?: boolean;
            • Deprecated

              Use the iterableIsArray and objectRestNoSymbols assumptions instead.

            property useBuiltIns

            useBuiltIns?: boolean;

              Package Files (1)

              Dependencies (1)

              Dev Dependencies (2)

              Peer Dependencies (1)

              Badge

              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@babel/plugin-transform-destructuring.

              • Markdown
                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@babel/plugin-transform-destructuring)
              • HTML
                <a href="https://www.jsdocs.io/package/@babel/plugin-transform-destructuring"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>