Skip to content

Commit

Permalink
docs: fix sourcemap support installation instructions (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
maschwenk committed Nov 27, 2022
1 parent ef8f5b1 commit c2b8389
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sourcemap-support/README.md
Expand Up @@ -3,6 +3,8 @@
```ts
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)
Expand Down

0 comments on commit c2b8389

Please sign in to comment.