REA source map notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

REA can use source maps in two authorized settings: as local supporting files in static JavaScript analysis, and as an optional fetch during analyze-web-bundle on a user-owned browser page. Prefer javascript-artifact-reconstruction.md and browser-observation.md.

Minimal paths

# Static: include the map explicitly (paths must match inventoried files)
rea analyze /absolute/path/to/app.asar \
  --source-path package.json --source-path main.js --source-path main.js.map --json

For CDP bundle analysis, select fetch_source_maps only when policy allows origin-bound fetches; inspection alone will not pull maps.

Mental model

  1. Maps are supporting inputs — they are not silently discovered for every script.
  2. CDP fetches stay on approved origins without cookies/credentials/referrer.
  3. Digests and names beat raw sourcesContent in graph commitments.
  4. Budget exhaustion becomes explicit unknowns, not silent truncation theater.

Source maps may reveal proprietary paths or unreleased source names. Analyze only apps and pages you are authorized to examine; do not use map fetches to exfiltrate third-party private deployments.

RepoRead is unofficial. Prefer the upstream guides linked above.

FAQ

Does inspect-web-page fetch source maps automatically?

No. Upstream states source maps are not fetched by inspection. Bundle analysis fetches them only when fetch_source_maps is selected, with exact-origin redirect checks and no credentials, cookies or referrer.

How do I include a local map in static analysis?

For analyze-javascript-application / analyze routes, include supporting source maps explicitly with --source-path (or source_paths). Imports do not expand the selection.

Are sourcesContent blobs stored raw?

Docs for the application-graph projection say source-map contents are parsed as local input; the graph stores original source names and optional content digests, not raw sourcesContent text.

What if a map URL will not fit the evidence budget?

Browser-observation docs say an observed URL must fit before its response body is read; if it cannot fit, remaining map results are explicitly unknown.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources