Skip to main content
Module.findSourceMap - node__module.d.ts - Node documentation
function Module.findSourceMap

Usage in Deno

```typescript import { Module } from "node:node__module.d.ts"; ```
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.