$ npm install @swc-node/sourcemap-support
@swc-node/sourcemap-support
import { 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
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE