esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

Plans for WASI Support?

Open william-stacken opened this issue 2 years ago • 2 comments

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?

william-stacken avatar Aug 09 '23 07:08 william-stacken

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.

evanw avatar Aug 09 '23 13:08 evanw

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

d3lm avatar Nov 09 '23 09:11 d3lm

Thanks a ton @evanw for implementing this!

d3lm avatar Jul 25 '24 17:07 d3lm