mirror of
https://github.com/vector-im/element-call.git
synced 2026-11-28 10:01:09 +08:00
widget-rtc-sdk/main.ts no longer builds Element Call's CallViewModel. It connects to the host over the widget API, builds the room widget client and hands it to createRTCSlot from the sdk/ package, with a data-only participation. Nothing of src/ is imported any more. The new withoutMatrixCrypto Vite plugin leaves the Matrix SDK's Rust crypto out of the bundle: as a widget the host encrypts and decrypts, so that chunk and its WASM were shipped but never loaded. The production build goes from 26.9 MB in 48 files (37 MB with source maps) to one 2.2 MB file. The Netlify preview no longer gets a config.json, which only the app reads, and gets a CORS header instead, so that a widget page on another origin can import the bundle as a module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>