fix(javascript): store source map URLs once

This commit is contained in:
morluto committed 2026-10-10 02:49:46 +08:00
1 parent 7915ee5178
commit ed8fcae94b
4 files changed
+212 -62

No files matched your search

+8
View File
@@ -73,6 +73,14 @@ The directed relation vocabulary is `contains`, `loads`, `imports`, `maps_to`,
and `changed_from`. Provider names are deliberately absent from both
vocabularies.
For a `maps_to` edge targeting a source-map node, the edge carries
`resolved_path` and `declared_url_sha256`. The target node's reference
observation carries that same digest and the exact `declared_url`; match the
digest to select the URL belonging to that edge when several references share
one physical source map. The full URL is kept out of node identity, display
label, and edge properties, so large inline data URLs are stored once per
source-map reference.
For example, a source-owned synthetic fixture proves this path without using a
third-party application: