You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating and continuing to maintain vite-plugin-wasm.
Now that the spec has reached Stage 3 (the implementation phase), we'd like to implement it as a built-in feature in Vite.
Since the implementation of this plugin is solid, we'd love to adopt it into the Vite core.
Would it be okay to do so?
If you're interested, it would be amazing if you could open a pull request to Vite yourself!
Reacted by Timme van der Meer, Gautier Ben Aïm, Danilo Arcidiacono, tornarus1, Peter Jaško, Brian Zhou, Rafael Beckel, Yann Mazita, Nakshatra Mukhopadhyay, KaliaJS and 9 more
If integrated into the core, there should be commentary surrounding its use as top level await contains a pitfall when used with a web worker (a common use case for wasm): delaying the registering of web worker message handler will cause messages to be dropped.
Oftentimes one doesn't need this plugin with Vite's url imports for static assets, which imo, should be preferred where possible.
Adding this to Vite is my initial idea in 2021 but since the spec is in an early stage, so Vite didn't accept. I'll create the Pull Request to add it to Vite!
Activity
nickbabcock commentedon Sep 11, 2025
If integrated into the core, there should be commentary surrounding its use as top level await contains a pitfall when used with a web worker (a common use case for wasm): delaying the registering of web worker message handler will cause messages to be dropped.
Oftentimes one doesn't need this plugin with Vite's url imports for static assets, which imo, should be preferred where possible.
Menci commentedon Mar 3, 2026
Thanks for the suggestion!
Adding this to Vite is my initial idea in 2021 but since the spec is in an early stage, so Vite didn't accept. I'll create the Pull Request to add it to Vite!
sapphi-red commentedon Jun 13, 2026
This was done in vitejs/vite#21779