Module.findSourceMap - Node documentation
function Module.findSourceMap

Usage in Deno

import { Module } from "node:module";
const { findSourceMap } = Module;
findSourceMap(
path: string,
error?: Error,
): SourceMap

path is the resolved path for the file for which a corresponding source map should be fetched.

Parameters

path: string
optional
error: Error

Return Type

Returns module.SourceMap if a source map is found, undefined otherwise.