Preparing for system design interviews?  Try bugzed.com →

Vite Plugin Top-Level Await

JSON →
library 1.6.0 ·javascript
verified Jun 18, 2026

A Vite plugin that transforms ES modules using top-level await (TLA) into compatible code for browsers that do not natively support TLA. Version 1.6.0 is current, with a moderate release cadence. It works by rewriting imports and exports to use Promise-based orchestration, handling circular dependencies correctly. Unlike setting build.target to esnext, this plugin retains compatibility with Vite's default browser targets. Supports both ES and IIFE worker formats. Notable alternatives include vite-plugin-top-level-await by Menci (this one) and manualPromise-based polyfilling; this plugin is the most popular and actively maintained for Vite ≥2.8.

total hits 16
actors 6 distinct systems
last hit 23d ago ByteDance
GPTBot
4
ByteDance
4
ClaudeBot
3
Script
1

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France