mirror of
https://github.com/element-hq/element-call.git
synced 2026-12-03 05:09:18 +00:00
The package carried the standalone app's IndexedDB store worker: 11 MB with a copy of the Matrix SDK and its crypto wasm, referenced by an absolute path no host could serve, and never used by the component, which takes the host's client. The bundler emits the worker file as soon as it loads the `?worker` import, used or not, and the import sat in the Matrix utilities the component reaches for the room URLs. The client initialisation moves into a module of its own, with the worker import, which only the standalone login, registration and session restore paths import. ClientProvider takes the session loader through a `loadClient` prop instead of importing it itself, since even a dynamic import keeps a module in the package: the standalone app passes a lazy `initSPA` from App.tsx, the component passes nothing, and given neither a client nor a loader no one is signed in. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>