Skip to content

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

Open
Menci wants to merge 2 commits into
vitejs:mainfrom
Menci:feat/wasm-esm-integration
Open

feat(wasm): direct .wasm imports (WASM ESM Integration)#21779
Menci wants to merge 2 commits into
vitejs:mainfrom
Menci:feat/wasm-esm-integration

Conversation

@Menci
Copy link
Copy Markdown
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.

close #4551

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
Copy Markdown
Contributor Author

Menci commented Mar 8, 2026

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

@Menci Menci changed the title feat(wasm): support direct .wasm imports (WASM ESM Integration) feat(wasm): direct .wasm imports (WASM ESM Integration) Mar 12, 2026
@sapphi-red sapphi-red added this to the 8.1 milestone Mar 16, 2026
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.

"ESM Integration proposal for Wasm" support

2 participants