rollup-plugin-dbg
v1.3.1
Published
```js import { defineConfig } from "rollup"; import config from "./package.json"; import PluginDbg from "rollup-plugin-dbg";
Downloads
4
Maintainers
Readme
rollup-plugin-dbg
This plugin is also compatible with vite
use with rollup
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
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",
},
},
});