# bun-codegen-loader

> A plugin for Bun (v1+) to generate useful modules at bundle-time.

Latest version **2.1.0** (published 2024-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install bun-codegen-loader
pnpm add bun-codegen-loader
yarn add bun-codegen-loader
bun add bun-codegen-loader
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2024-12-26 |
| First published | 2024-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.0 |
| Dependencies | 0 |
| Unpacked size | 30.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Florian Rappl |
| Maintainers | florianrappl |
| Keywords | codegen, bun, plugin, loader |

## Links

- npm: https://www.npmjs.com/package/bun-codegen-loader
- Repository: https://github.com/FlorianRappl/codegen-js
- Issues: https://github.com/FlorianRappl/codegen-js/issues
- Funding: https://github.com/sponsors/FlorianRappl
- npm.io page: https://npm.io/package/bun-codegen-loader

## 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

- 2.1.0 (latest) — 2024-12-26
- 2.1.0-pre.11 (next) — 2025-03-07
- 2.1.0-pre.9 — 2024-12-26
- 2.1.0-pre.8 — 2024-12-26

## README

# `bun-codegen-loader`

[![npm](https://img.shields.io/npm/v/bun-codegen-loader.svg)](https://www.npmjs.com/package/bun-codegen-loader)
[![GitHub tag](https://img.shields.io/github/tag/FlorianRappl/codegen-js.svg)](https://github.com/FlorianRappl/codegen-js/releases)
[![GitHub issues](https://img.shields.io/github/issues/FlorianRappl/codegen-js.svg)](https://github.com/FlorianRappl/codegen-js/issues)

A plugin for `bun` to allow bundle-time asset generation. This can be useful to work efficiently with established conventions and reduce duplication and boilerplate code.

## License

This plugin is released using the MIT license. For more information see the [LICENSE file](./LICENSE).

---
_Source: https://npm.io/package/bun-codegen-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
