Stability: 1 - Experimental

    Helpers for interacting with the source map cache. This cache is populated when source map parsing is enabled and [source map include directives][] are found in a modules’ footer.

    To enable source map parsing, Node.js must be run with the flag [--enable-source-maps][], or with code coverage enabled by setting [NODE_V8_COVERAGE=dir][].

    1. // module.mjs
    2. // In an ECMAScript module
    3. import { findSourceMap, SourceMap } from 'module';
    1. // module.cjs
    2. // In a CommonJS module
    3. const { findSourceMap, SourceMap } = require('module');