New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rollup-plugin-dbg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-dbg

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

latest
Source
npmnpm
Version
1.3.1
Version published
Weekly downloads
14
366.67%
Maintainers
1
Weekly downloads
 
Created
Source

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",
    },
  },
});

Keywords

rollup-plugin

FAQs

Package last updated on 18 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts