Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

619 B
Raw Blame
import { WebSourceLocationService } from "../application/WebSourceLocationService.js";
import { LocalWebSourceLocationArtifacts } from "../browser/assets/WebSourceLocationArtifacts.js";
import { SourceMapDecoder } from "../javascript/sourceMaps/SourceMapDecoder.js";

/** Compose local source/map analysis without import-time reads or process acquisition. */
export const createWebSourceLocationService = (
  environment: Readonly<NodeJS.ProcessEnv> = process.env,
): WebSourceLocationService =>
  new WebSourceLocationService(
    new LocalWebSourceLocationArtifacts(),
    new SourceMapDecoder({ environment }),
  );