# rollup-plugin-dbg

> ```js import { defineConfig } from "rollup"; import config from "./package.json"; import PluginDbg from "rollup-plugin-dbg";

Latest version **1.3.1** (published 2022-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-dbg
pnpm add rollup-plugin-dbg
yarn add rollup-plugin-dbg
bun add rollup-plugin-dbg
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2022-08-18 |
| First published | 2022-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 92.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | CGQAQ |
| Maintainers | cgqaq |
| Keywords | rollup-plugin, rollup-plugin-dbg, vite-plugin |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-dbg
- Repository: https://github.com/CGQAQ/rollup-plugin-dbg
- Homepage: https://github.com/CGQAQ/rollup-plugin-dbg#readme
- Issues: https://github.com/CGQAQ/rollup-plugin-dbg/issues
- npm.io page: https://npm.io/package/rollup-plugin-dbg

## Dependencies (2)

- [acorn-walk](https://npm.io/package/acorn-walk.md) ^8.2.0
- [magic-string](https://npm.io/package/magic-string.md) ^0.26.2

## Recent versions

- 1.3.1 (latest) — 2022-08-18
- 1.3.0 — 2022-08-15
- 1.2.0 — 2022-08-15
- 1.1.0 — 2022-08-14
- 1.0.2 — 2022-08-14
- 1.0.1 — 2022-08-14
- 1.0.0 — 2022-08-14

## README

# rollup-plugin-dbg

## This plugin is also compatible with vite

### use with rollup

```js
import { defineConfig } from "rollup";
import config from "./package.json";
import PluginDbg from "rollup-plugin-dbg";

export default defineConfig({
  plugins: [PluginDbg({ projectRoot: __dirname })],
  input: "./index.js",
  output: [
    {
      file: config.exports["."].import,
      format: "es",
    },
    {
      file: config.exports["."].require,
      format: "commonjs",
      exports: "auto",
    },
  ],
});
```

### use with vite

```js
import { defineConfig } from "vite";
import PluginDbg from "rollup-plugin-dbg";

export default defineConfig({
  mode: "development",
  plugins: [PluginDbg()], // do not need projectRoot when using with vite
  build: {
    outDir: "dist",
    lib: {
      entry: "index.js",
      name: "example",
    },
  },
});
```

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