mirror of
https://github.com/vector-im/element-call.git
synced 2026-11-07 00:52:28 +00:00
A library build inlines an asset as a data URL the moment its import loses `no-inline`, and emits the standalone app's store worker the moment a module the component reaches imports it; neither warns, and the package grows by 11 MB without anyone seeing it in a diff. It had been published at 18 MB for several releases before it was measured. `scripts/check-component-bundle.mjs` now runs at the end of the component build and fails it on a data URL over 16 kB in a module a host bundles, an absolute `/assets/` reference, the store worker under `assets/`, or a main module over 4 MB, each with a message saying what to do. It passes only once both the assets and the store worker fixes are in. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>