Socket
Socket
Sign inDemoInstall

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Package Overview
Dependencies
54
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517

    7.23.3latest
    GitHub
    npm

Version published
Maintainers
4
Weekly downloads
19,443,980
increased by4.58%

Weekly downloads

Package description

What is @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression?

The @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression package is designed to address a specific bug in Safari related to the collision of variable names in destructuring assignments within function expressions. This plugin works as part of the Babel toolchain to transform affected code into a format that avoids the bug, ensuring compatibility and preventing runtime errors in Safari.

What are @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression's main functionalities?

Bug Fix for Safari Destructuring Collision

This code sample demonstrates a scenario where the plugin would transform the function expression to avoid a naming collision that Safari cannot handle. Without the plugin, this code might cause a runtime error in Safari due to the destructuring assignment.

const example = ({ a }) => { const { a: b } = someObject; return a + b; };

Other packages similar to @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Changelog

Source

v7.23.3 (2023-11-09)

:bug: Bug Fix
  • babel-plugin-transform-typescript
    • #16071 Strip type-only TS namespaces (@colinaaa)
  • babel-generator
  • babel-compat-data, babel-plugin-bugfix-v8-static-class-fields-redefine-readonly, babel-preset-env
  • babel-plugin-transform-object-super
  • babel-helper-module-transforms, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-umd
:memo: Documentation
  • #16044 docs: Update links in @babel/eslint-parser README (@aryehb)
:house: Internal
  • babel-core, babel-preset-env
:running_woman: Performance
:microscope: Output optimization
  • babel-plugin-transform-computed-properties

Readme

Source

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517

See our website @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

or using yarn:

yarn add @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression --dev

Keywords

FAQs

Last updated on 09 Nov 2023

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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