Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 7.8.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created

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

Keywords

FAQs

Package last updated on 12 Jan 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc