Skip to content

source maps: --out-dir far from source produces root-climbing relative sources (sourceRoot design) #197

Description

@dean0x

When the output directory is far from the source tree, relative paths in source maps accumulate deep ../../../... chains. This exposes directory structure in shipped artifacts and can be verbose.

Current behavior: sources[] contains verbatim relative paths from output to source files, regardless of depth.

Open question: Should MDS support sourceRoot to factor out the common prefix? What's the right UX for specifying it? Privacy consideration: how much directory structure should shipped maps reveal?

Deferred from the v0.4.0 dogfooding remediation (PR #196) — flagged during the 2026-07-17 dogfooding campaign; deliberately not implemented there pending design discussion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitectural refactoringenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions