# @swc-node/sourcemap-support

> Runtime sourcemap support in NodeJS

Latest version **0.6.1** (published 2025-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @swc-node/sourcemap-support
pnpm add @swc-node/sourcemap-support
yarn add @swc-node/sourcemap-support
bun add @swc-node/sourcemap-support
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.6.1 |
| Published | 2025-08-17 |
| First published | 2020-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 36.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1981 |
| Author | LongYinan |
| Maintainers | broooooklyn |
| Keywords | swc, ts-node, N-API, NAPI, napi-rs, node-rs, rust, esbuild, typescript |

## Links

- npm: https://www.npmjs.com/package/@swc-node/sourcemap-support
- Repository: https://github.com/swc-project/swc-node
- Issues: https://github.com/swc-project/swc-node/issues
- npm.io page: https://npm.io/package/@swc-node/sourcemap-support

## Dependencies (2)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [source-map-support](https://npm.io/package/source-map-support.md) ^0.5.21

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.6.1 (latest) — 2025-08-17
- 0.5.1 — 2024-07-05
- 0.5.0 — 2024-03-05
- 0.4.0 — 2024-02-01
- 0.3.0 — 2023-02-10
- 0.2.4 — 2023-02-07
- 0.2.3 — 2023-01-05
- 0.2.2 — 2022-10-06
- 0.2.1 — 2022-09-22
- 0.2.0 — 2022-04-27
- 0.1.11 — 2021-12-13
- 0.1.10 — 2021-10-29
- 0.1.9 — 2021-10-16
- 0.1.8 — 2020-08-31
- 0.1.7 — 2020-07-30
- … 2 more at https://npm.io/package/@swc-node/sourcemap-support/versions

## README

# `@swc-node/sourcemap-support`

```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)
  return code
}
```

---
_Source: https://npm.io/package/@swc-node/sourcemap-support · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
