# @runtime-type-inspector/parcel-transformer

> RuntimeTypeInspector.js plugin for Parcel v2

Latest version **5.0.1** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @runtime-type-inspector/parcel-transformer
pnpm add @runtime-type-inspector/parcel-transformer
yarn add @runtime-type-inspector/parcel-transformer
bun add @runtime-type-inspector/parcel-transformer
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2026-09-24 |
| First published | 2023-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hermann Rolfes |
| Maintainers | kungfooman |

## Links

- npm: https://www.npmjs.com/package/@runtime-type-inspector/parcel-transformer
- npm.io page: https://npm.io/package/@runtime-type-inspector/parcel-transformer

## Dependencies (2)

- [@parcel/plugin](https://npm.io/package/@parcel/plugin.md) ^2.10.1
- [@runtime-type-inspector/transpiler](https://npm.io/package/@runtime-type-inspector/transpiler.md) ^5.0.1

## Recent versions

- 5.0.1 (latest) — 2026-09-24
- 5.0.0 — 2026-09-24
- 4.0.6 — 2025-02-15
- 4.0.5 — 2025-02-14
- 4.0.4 — 2025-02-13
- 4.0.3 — 2024-11-16
- 4.0.2 — 2024-11-15
- 4.0.1 — 2024-11-06
- 4.0.0 — 2024-07-22
- 3.3.7 — 2024-06-21
- 3.3.6 — 2024-06-20
- 3.3.5 — 2024-06-19
- 3.3.4 — 2024-06-17
- 3.3.3 — 2024-06-17
- 3.3.2 — 2024-06-14
- … 19 more at https://npm.io/package/@runtime-type-inspector/parcel-transformer/versions

## README

# Plugin for Parcel v2

For integrating this plugin follow this process:

1) `npm install --save-dev @runtime-type-inspector/parcel-transformer`

2) Edit your `.parcelrc`:

```json
{
    "extends": "@parcel/config-default",
    "transformers": {
        "*.js": ["@runtime-type-inspector/parcel-transformer", "..."]
    }
}
```

3) Make sure to declare RTI as globals:

```html
<script src="/node_modules/@runtime-type-inspector/runtime/index.cjs"></script>
<script>
  Object.assign(window, rtiRuntime);
</script>
<script src="./build/out.js"></script>
```

This is *kind of ugly*, but Parcel v2 simply doesn't seem to support adding import declarations inside a plugin. If I will find a possibility, I will fix this.

Parcel also drops files that export nothing, but given the nature of JSDoc comments in combination of RTI, a comment is converted into `registerTypedef(...)` for example. This means that typedefs in such files will simply be unregistered, causing runtime type errors (because it's an unknown type). Make sure to process such files individually and add them into the final `out.js`.

---
_Source: https://npm.io/package/@runtime-type-inspector/parcel-transformer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
