Skip to content

feat(wasm): support direct .wasm imports (WASM ESM Integration)#21779

Open
Menci wants to merge 1 commit intovitejs:mainfrom
Menci:feat/wasm-esm-integration
Open

feat(wasm): support direct .wasm imports (WASM ESM Integration)#21779
Menci wants to merge 1 commit intovitejs:mainfrom
Menci:feat/wasm-esm-integration

Conversation

@Menci
Copy link
Contributor

@Menci Menci commented Mar 8, 2026

Add support for importing .wasm files directly without the ?init suffix, by the WASM ESM Integration draft standard. The plugin parses wasm binary to extract imports/exports, generates appropriate glue code, and handles both dev and SSR build modes.

Add support for importing .wasm files directly without the ?init suffix.
The plugin parses wasm binary to extract imports/exports, generates
appropriate glue code, and handles both dev and SSR build modes.
@Menci
Copy link
Contributor Author

Menci commented Mar 8, 2026

This relies on fix #21780 to be checked-in first.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant