Skip to content

Better WebAssembly integration #1325

Open
@xtuc

Description

@xtuc

It seems that the current WebAssembly integration imposes some restriction: #647.

💬 RFC

In order to provide the best integration we want wasm to be part of the ES module graph, and treated as any other ES module. It has some issues at the moment, you can find more details here https://github.com/WebAssembly/esm-integration (that we can avoid with some transformations).

Parcel don't necessarily need to expose the importObject since it can be automatically wired for the user.

I propose you to use https://github.com/xtuc/webassemblyjs (disclaimer: i'm the author) to decode the wasm and apply transformations if needed (remove the start func, runtime, optimization etc).

🔦 Context

I'm currently working on the WebAssembly integration in Webpack.

💻 Examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions