$ cnpm install @swc-node/sourcemap-support
@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
}
Copyright 2013 - present © cnpmjs.org | Home |