1
0
mirror of https://github.com/element-hq/element-web.git synced 2026-10-23 11:09:01 +03:00
Files
Matthew Hodgson efca432abd Fix blank maps by bundling the maplibre-gl worker explicitly (#35423)
* 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
2026-10-12 14:06:56 +00:00
..
2026-07-10 09:47:41 +00:00