Architecture decision record · ADR-0004
Lazy maplibre-gl peer dependency and SSR no-op
maplibre-gl is a peer dependency.
Context
maplibre-gl is large and needs WebGL and window. A route with no map must not pay for it. A server render must not fail.
Decision drivers
Not recorded in the original ADR.
Options considered
Not recorded in the original ADR.
Decision
maplibre-glis a peer dependency.<MeridianMap>loads it with a dynamicimport().- On the server,
<MeridianMap>renders its container only, and the yielded components render nothing. @meridian-ts/coreand the adapters usefetchonly, so they work on the server.
Consequences
- The first map render waits for the import.
<MeridianMap>has a<:loading>block. - The consumer controls the engine version.
- No static image fallback on the server in 1.0.
Confirmation
Not recorded in the original ADR.
Interview record
Each question of the interview with its answer and its source. A fact from the code or a document, a question that the author did not ask, and an assumption are rows too.
| Question | Answer | Source |
|---|---|---|
| Where does the text of this page come from? | From the Markdown file docs/adr/0004-engine-load-and-ssr.md at commit ece53da. The text of each section is the text of the Markdown file. A section that the Markdown file does not have says so. | Document: docs/adr/0004-engine-load-and-ssr.md |
Changelog
| Date | Author | Change |
|---|---|---|
| 2026-12-02 | Joe Gaudet | Status in the Markdown file: Proposed (plan, 2026-12-02). M0 confirms it. |
| 2026-12-02 | Joe Gaudet | Commit bca5c8f: Add the plan and the decisions for Meridian |
| 2026-12-04 | Joe Gaudet (agent) | Converted from docs/adr/0004-engine-load-and-ssr.md to this page. The text is the text of the Markdown file. |
The adr skill of skillsaw wrote this page. The HTML in this file is the source of truth. The diagrams are the Mermaid sources in it.