Socket
Socket
Sign inDemoInstall

@babel/helper-split-export-declaration

Package Overview
Dependencies
4
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-split-export-declaration


Version published
Maintainers
4
Weekly downloads
39,532,497
increased by0.98%
Install size
2.37 MB

Weekly downloads

Package description

What is @babel/helper-split-export-declaration?

The @babel/helper-split-export-declaration package is a utility within the Babel compiler ecosystem. It is designed to assist in the transformation of ECMAScript modules by splitting export declarations that have associated expressions. This is particularly useful in the process of transpiling code to be compatible with environments that have varying levels of support for ES modules.

What are @babel/helper-split-export-declaration's main functionalities?

Splitting Export Declarations

This feature allows the transformation of export statements in JavaScript modules, particularly those that export a declaration and its value in a single statement. The code sample demonstrates how an export default declaration would be transformed to separate the declaration and the export, ensuring compatibility with environments that may not fully support the latest ECMAScript module syntax.

"use strict";\n\nObject.defineProperty(exports, '__esModule', {\n  value: true\n});\nexports.default = void 0;\nvar _default = 'Hello, world!';\nexports.default = _default;"

Other packages similar to @babel/helper-split-export-declaration

Changelog

Source

v7.22.6 (2023-07-04)

:bug: Bug Fix
  • babel-compat-data, babel-helper-compilation-targets, babel-preset-env
    • #15727 Add opera mobile compat data (@JLHwung)
  • babel-plugin-transform-optional-chaining
  • babel-helper-split-export-declaration, babel-plugin-transform-modules-commonjs
  • babel-compat-data, babel-preset-env
  • babel-helpers, babel-plugin-proposal-explicit-resource-management, babel-runtime-corejs3, babel-runtime
  • babel-standalone
  • babel-core
:house: Internal
  • babel-helper-create-class-features-plugin, babel-plugin-transform-classes
:microscope: Output optimization
  • babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-transform-class-properties, babel-plugin-transform-optional-chaining, babel-plugin-transform-typescript
  • babel-plugin-proposal-destructuring-private, babel-plugin-proposal-do-expressions, babel-plugin-proposal-pipeline-operator, babel-plugin-transform-class-properties, babel-plugin-transform-nullish-coalescing-operator, babel-plugin-transform-optional-chaining, babel-plugin-transform-private-property-in-object, babel-traverse

Readme

Source

@babel/helper-split-export-declaration

See our website @babel/helper-split-export-declaration for more information.

Install

Using npm:

npm install --save @babel/helper-split-export-declaration

or using yarn:

yarn add @babel/helper-split-export-declaration

FAQs

Last updated on 04 Jul 2023

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