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

Plans for WASI Support? #3300

Closed
william-stacken opened this issue Aug 9, 2023 · 3 comments
Closed

Plans for WASI Support? #3300

william-stacken opened this issue Aug 9, 2023 · 3 comments

Comments

@william-stacken
Copy link

Since go version 1.21.0, there is support to target WASI using GOOS=wasip1. I tried in scripts/esbuild.js to change GOOS in the buildWasmTarget function from js to wasip1, followed by a make platform-wasm. It worked and esbuild ran in wasmtime just fine.

Are there any plans to, for example, extend the esbuild-wasm package to include a esbuild WASI binary in addition to the JS one?

@evanw
Copy link
Owner

evanw commented Aug 9, 2023

I don't have any plans at the moment (it was just released!). It's good to hear that it works. I think it makes sense to use a separate package for this so that people don't have to download both. However, adding this isn't super straightforward because Go 1.21.0 also dropped support for quite a few platforms, which I'm not keen on dropping for esbuild. So I'll probably stick to Go 1.20.x for at least a while.

@d3lm
Copy link

d3lm commented Nov 9, 2023

Go now has official WASI support and I wanted to ask if there are plans to look into WASI for esbuild now?

@evanw evanw closed this as completed in b722000 Jun 30, 2024
@d3lm
Copy link

d3lm commented Jul 25, 2024

Thanks a ton @evanw for implementing this!

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

No branches or pull requests

3 participants