Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wasm): use instantiateStreaming when available #1330

Merged
merged 2 commits into from Jan 3, 2021

Conversation

ianpurvis
Copy link
Contributor

WebAssembly.instantiateStreaming will be used if available and Content-Type allows, otherwise the helper will fall back to WebAssembly.instantiate.

@ianpurvis
Copy link
Contributor Author

@yyx990803 Extracted from #1144 for vite 2.0. This PR also adds a non-inline wasm test.

Resolves #1143 which actually became obsolete in vite 2.0 when instantiateStreaming stopped being used.

Thanks!

@yyx990803 yyx990803 merged commit 2286f62 into vitejs:main Jan 3, 2021
@ianpurvis ianpurvis deleted the fix/dev-wasm-safari branch January 31, 2021 23:59
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.

None yet

2 participants