Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-top-level-await

Package Overview
Dependencies
54
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-syntax-top-level-await

Allow parsing of top-level await in modules


Version published
Weekly downloads
27M
increased by1.57%
Maintainers
6
Install size
9.21 kB
Created
Weekly downloads
 

Package description

What is @babel/plugin-syntax-top-level-await?

The @babel/plugin-syntax-top-level-await package allows Babel to parse top-level await expressions. This is particularly useful for enabling asynchronous module loading directly at the top level of your modules, without needing to wrap them in async functions. It's a syntax-only plugin, meaning it allows Babel to understand this syntax but does not transform it. This is useful for environments that support top-level await natively.

What are @babel/plugin-syntax-top-level-await's main functionalities?

Parsing top-level await expressions

Enables Babel to parse top-level await expressions, allowing for direct, asynchronous operations at the module level without wrapping in an async function.

await fetch('https://example.com/data');

Other packages similar to @babel/plugin-syntax-top-level-await

Readme

Source

@babel/plugin-syntax-top-level-await

Allow parsing of top-level await in modules

See our website @babel/plugin-syntax-top-level-await for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-top-level-await

or using yarn:

yarn add @babel/plugin-syntax-top-level-await --dev

Keywords

FAQs

Last updated on 09 Jun 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