Skip to content

Integrate vite-plugin-wasm into Vite Core #76

Description

@sapphi-red

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!

Activity

  1. nickbabcock commented on Sep 11, 2025

    @nickbabcock

    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.

  2. Menci commented on Mar 3, 2026

    @Menci
    Owner

    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!

  3. sapphi-red commented on Jun 13, 2026

    @sapphi-red
    Author

    This was done in vitejs/vite#21779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions