Match the project to your task before installing it.
Software Development & Delivery · Preview
vite-plugin-top-level-await
Transform code to support top-level await in normal browsers for Vite.
Check whether this project matches your task before installing it.
What it can doskill, recipe, host_instruction, eval, preflightReview the portable capability path.
Before continuingVerify in a sandboxDo not treat a preview pack as a proven local install.
GitHub snapshot315 stars24 forks · 12 contributors
Doramagic.ai Last verification date: 2026-06-20 Verification method: source evidence, semantic profile, public page gate, and static build acceptance.
Preview status · 2026-06-20
What is vite-plugin-top-level-await?
- Transform code to support top-level await in normal browsers for Vite.
- Best fit: Users who want source-backed project understanding before installing it.
- Not for: Not for users who want to skip sandbox verification or cannot accept configuration, permission, or maintenance overhead.
- Capability added to an AI workflow: skill, recipe, host_instruction, eval, preflight
- First safe verification step: Verify the smallest path in an isolated environment and keep a rollback path.
- Verification state: source, Quick Start, and sandbox install checks are recorded as passed.
- Top risk: May increase setup, validation, or first-run risk for the user.
- Evidence base: https://github.com/Menci/vite-plugin-top-level-await, https://github.com/Menci/vite-plugin-top-level-await#readme, Human Manual, Pitfall Log
01
Quick decision
Use this section to decide whether the project is worth a deeper read.Transform code to support top-level await in normal browsers for Vite.
315 stars · 24 forks
02
What it can do
Translate the upstream project into concrete capabilities the user can judge before installing.Introduction and Installation
Related topics: Transformation Pipeline and Internals, Configuration Options and Worker Support
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Transformation Pipeline and Internals
Related topics: Introduction and Installation, Configuration Options and Worker Support, Known Issues, Compatibility and Troubleshooting
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Configuration Options and Worker Support
Related topics: Introduction and Installation, Transformation Pipeline and Internals
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Known Issues, Compatibility and Troubleshooting
Related topics: Introduction and Installation, Transformation Pipeline and Internals, Configuration Options and Worker Support
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Doramagic Pitfall Log
Source-linked risks stay visible on the manual page so the preview does not read like a recommendation.
Source: Doramagic discovery, validation, and Project Pack records
Sources: https://github.com/Menci/vite-plugin-top-level-await, Human Manual, Project Pack evidence, and downstream validation signals.
03
Community Discussion Evidence
Project-level external discussion stays visible on the detail page, not only inside the manual.Community Discussion Evidence
12 source-linked itemsReview these external discussions before using vite-plugin-top-level-await with real data or production workflows. They are review inputs, not standalone proof that the project is production-ready.
-
01
Support vite 8
github / github_issue
-
02
Plugin overwrite Vite's default targets
github / github_issue
-
03
vite-plugin-top-level-await breaks chunk's hash generation in Vite
github / github_issue
-
04
Code relying on function hoisting is broken
github / github_issue
-
05
Add include/exclude options for selective package transformation
github / github_issue
-
06
vite-plugin-top-level-await breaks initialization ordering (hoisting + d
github / github_issue
-
07
Code broken when used with Remix
github / github_issue
-
08
Vite 7 - esbuildOptions deprecated
github / github_issue
-
09
The component cannot be displayed correctly.
github / github_issue
-
10
Bun doesn't support module.require
github / github_issue
-
11
Community source 11
github / github_issue
-
12
How to use in vite dev mode with chrome extension service-worker
github / github_issue
04
How to start
Only source-backed commands are shown here. Verify them in an isolated environment first.Try the prompt first
Test the workflow without installing the upstream project.
previewRead the Human Manual
Understand inputs, outputs, limits, and failure modes.
manualTake context to your AI host
Use the compiled assets in your preferred AI environment.
contextRun sandbox verification
Confirm install commands and rollback before using a primary environment.
verifynpm install vite-plugin-top-level-awaitOfficial start command · https://github.com/Menci/vite-plugin-top-level-await#readme · verified: yes
05
Human Manual
The English page must expose the real manual, not a short placeholder.8+ sections · Human Manual
vite-plugin-top-level-await Manual
The plugin's generateBundle hook drives a four-stage pipeline. Each stage is implemented as a separate module, and the boundaries between them are clean enough to reason about in isolation.
Open the full manual- https://github.com/Menci/vite-plugin-top-level-await Project Manual
- Table of Contents
- Introduction and Installation
- Related Pages
- Purpose and Scope
- Installation
- or
- Dual Package Layout
Introduction and Installation
Related topics: Transformation Pipeline and Internals, Configuration Options and Worker Support
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Transformation Pipeline and Internals
Related topics: Introduction and Installation, Configuration Options and Worker Support, Known Issues, Compatibility and Troubleshooting
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Configuration Options and Worker Support
Related topics: Introduction and Installation, Transformation Pipeline and Internals
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Known Issues, Compatibility and Troubleshooting
Related topics: Introduction and Installation, Transformation Pipeline and Internals, Configuration Options and Worker Support
Source: https://github.com/Menci/vite-plugin-top-level-await / Human Manual
Doramagic Pitfall Log
Source-linked risks stay visible on the manual page so the preview does not read like a recommendation.
Source: Doramagic discovery, validation, and Project Pack records
06
AI Context Pack and portable assets
After deciding to continue, take the project context into your own AI host.Complete pack plus user-owned assets
These files are planning and verification assets for Claude Code, Codex, Gemini, Cursor, ChatGPT, and other AI hosts.
07
Preflight checks
Treat this page as a planning asset, not proof that your local environment is ready.- The manual is generated from source-linked project files and Doramagic validation signals.
- Community evidence warnings stay visible instead of being converted into marketing claims.
- This preview remains noindex and excluded from sitemap/llms citation targets until English quality and index gates pass.
- Use the upstream repository as the final authority for installation commands, license, and version-specific behavior.
08
Pitfall Log and verification risks
Doramagic surfaces high-risk items before users treat a candidate capability as verified.Installation risk requires verification
May increase setup, validation, or first-run risk for the user.
Installation risk requires verification
May increase setup, validation, or first-run risk for the user.
Installation risk requires verification
May increase setup, validation, or first-run risk for the user.
Installation risk requires verification
May increase setup, validation, or first-run risk for the user.
Runtime risk requires verification
May increase setup, validation, or first-run risk for the user.
Installation risk requires verification
May increase setup, validation, or first-run risk for the user.
Installation risk requires verification
May increase setup, validation, or first-run risk for the user.
Installation risk requires verification
May increase setup, validation, or first-run risk for the user.