Skip to content

Auto-substitute @rspack/binding to @rspack/binding-wasm32-wasi #1910

@CPunisher

Description

@CPunisher

Describe the solution you'd like:
When installing @rspack/binding in stackblitz, auto-substitute it with its wasm equivalent @rspack/binding-wasm32-wasi, like:

Additional context:

rspack is a fast Rust-based web bundler that seamlessly replace webpack with compatible API. The WASM version allows users to create rspack projects online with the webcontainer or stackblitz, which can be also used for bug reproduction. In the future, we will provide a pure browser version.

I've created a demo in stackblitz: https://stackblitz.com/~/github.com/CPunisher/rspack-starter-stackblitz. Currently npm and pnpm should specify cpu=wasm32 when setting up the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions