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
Package to replace
source-map-supportand@cspotcode/source-map-supportSuggested replacement(s)
NODE_OPTIONS="--enable-source-maps" node index.jsManifest 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