You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2026-10-23 11:09:01 +03:00
* Fix blank maps by bundling the maplibre-gl worker explicitly maplibre-gl v6 locates its tile-parsing worker from `import.meta.url`, which webpack inlines as a file:// path. maplibre rejects that, so no worker is spawned and maps render only their background with no error. Build the worker as its own entry and point maplibre at it. * Resolve the maplibre worker inside the hashed bundle directory The webpack public path is the webapp root, not the bundle directory, so the worker URL pointed at a file that does not exist and maplibre hung silently. Ask webpack for the entry's full filename instead. * Test that maplibre is pointed at the bundled worker