
[Pitch] Emscripten Target Support for Swift
Swift already runs in the browser today. Using the WASI target with JavaScriptKit and browser-side WASI polyfills, the community has built projects ranging from ElementaryUI (a SwiftUI-inspired web framework) to real-time graphics with WebGPU. The WebAssembly vision document noted that "browser-specific use cases remain to be addressed in a separate document." This pitch proposes adding the Emscripten target (wasm32-unknown-emscripten) to the Swift toolchain, complementing the existing WASI ta…