@swc-node/sourcemap-support
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@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
}

Package Sidebar

Install

npm i @swc-node/sourcemap-support

Weekly Downloads

969,600

Version

0.5.0

License

MIT

Unpacked Size

29.8 kB

Total Files

7

Last publish

Collaborators

  • broooooklyn