pulumi/sdk/go/common/util/rpcutil
Pat Gavlin 7273bc02c9
[display] Enable WASM compilation (#16246)
These changes contain some minor refactorings to conditionally disable
the use of packages that are cannot be built for `GOOS=js GOARCH=wasm`.
With these edits, `pkg/display` can be built targeting WASM.

These changes act as a safeguard to ensure that we are not adding
additional code that will _prevent_ building `pkg/display` for WASM
targets. They are not sufficient to produce a version of the display
renderer that is appropriate for actual use in a WASM environment:

- The current renderer API is not well-suited for use outside the
context of the CLI
- The current event stream format has no versioning data
- Actually building this code into a WASM module results in an
unpleasantly large file (70M uncompressed, 13M gzipped)

These changes also add a size gate for the built WASM module. The gate
is set to the 110% of the size of the WASM module as of this commit. Our
goal is to lower the size of the WASM module over time; as we do so we
will tighten this gate.

Part of #13258.
2024-05-24 20:27:56 +00:00
..
rpcerror Remove deprecated Protobufs imports (#15158) 2024-01-17 09:35:20 +00:00
health.go grpc: WithInsecure is deprecated 2023-01-11 12:15:40 -08:00
interceptor.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
pty.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
pty_js.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
pty_windows.go Move InstallDependencies to the language plugin (#9294) 2022-04-03 15:54:59 +01:00
serve.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
writer.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
writer_test.go chore(all): strings.Replace(..., -1) => strings.Replace(...) 2023-03-01 13:22:33 -08:00