package
Runtime sourcemap support in NodeJS
npm install @swc-node/sourcemap-supportGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
@swc-node/sourcemap-supportimport { SourcemapMap, installSourceMapSupport } from '@swc-node/sourcemap-support'
installSourceMapSupport()
function transform(sourcecode, filename, options) {
const { code, map } = transformSync(sourcecode, filename, options)
SourcemapMap.set(filename, map)
return code
}Estimated unpacked size across 5 packages.
395.7 kB
Includes dependencies.