Skip to content

[Replacement]: source-map-support #1027

Description

@gameroman

Package to replace

source-map-support and @cspotcode/source-map-support

Suggested replacement(s)

node --enable-source-maps index.js
NODE_OPTIONS="--enable-source-maps" node index.js
import { findSourceMap } from 'node:module'

const sourceMap = findSourceMap('/path/to/file.js')
import { setSourceMapsSupport } from 'node:module'

setSourceMapsSupport(true, { nodeModules: true, generatedCode: true })

Manifest type

native (replaceable by a built-in platform feature)

Rationale

Node.js has it natively now

Availability

Since Node.js v23.7.0, v22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedUsed to signal if a suggested replacement has been accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions