# @chialab/esbuild-plugin-commonjs

> A commonjs to esm converter for esbuild.

Latest version **0.19.1** (published 2026-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chialab/esbuild-plugin-commonjs
pnpm add @chialab/esbuild-plugin-commonjs
yarn add @chialab/esbuild-plugin-commonjs
bun add @chialab/esbuild-plugin-commonjs
```

## Health

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

Positive: has types; esm support; no vulnerabilities; has provenance.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.1 |
| Published | 2026-02-25 |
| First published | 2021-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 183 |
| Author | Chialab |
| Maintainers | chialab-admin, chialab-developers |
| Keywords | esbuild, plugin, commonjs, esm |

## Links

- npm: https://www.npmjs.com/package/@chialab/esbuild-plugin-commonjs
- Repository: https://github.com/chialab/rna
- Homepage: https://github.com/chialab/rna#readme
- Issues: https://github.com/chialab/rna/issues
- npm.io page: https://npm.io/package/@chialab/esbuild-plugin-commonjs

## Dependencies (2)

- [@chialab/cjs-to-esm](https://npm.io/package/@chialab/cjs-to-esm.md) ^0.19.1
- [@chialab/esbuild-rna](https://npm.io/package/@chialab/esbuild-rna.md) ^0.19.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.19.1 (latest) — 2026-02-25
- 0.19.0-beta.2 (beta) — 2024-11-04
- 0.18.0-alpha.1 (alpha) — 2023-08-29
- 0.19.0 — 2025-08-25
- 0.19.0-beta.1 — 2024-06-14
- 0.19.0-beta.0 — 2024-03-11
- 0.18.0 — 2024-01-11
- 0.18.0-alpha.0 — 2023-05-01
- 0.17.2 — 2022-10-31
- 0.17.1 — 2022-08-25
- 0.17.0 — 2022-08-23
- 0.16.2 — 2022-07-27
- 0.16.1 — 2022-07-26
- 0.16.0 — 2022-06-08
- 0.15.37 — 2022-05-26
- … 82 more at https://npm.io/package/@chialab/esbuild-plugin-commonjs/versions

## README

# Esbuild Plugin Commonjs

A commonjs to esm converter for [esbuild](https://esbuild.github.io/).

[![NPM](https://img.shields.io/npm/v/@chialab/esbuild-plugin-commonjs.svg)](https://www.npmjs.com/package/@chialab/esbuild-plugin-commonjs)

## Documentation

Read the documentation at [chialab.github.io/rna](https://chialab.github.io/rna/guide/esbuild-plugin-commonjs).

## License

**Esbuild Plugin Commonjs** is released under the [MIT](https://github.com/chialab/rna/blob/main/packages/esbuild-plugin-commonjs/LICENSE) license.

---
_Source: https://npm.io/package/@chialab/esbuild-plugin-commonjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
