
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@types/rollup-plugin-visualizer
Advanced tools
TypeScript definitions for rollup-plugin-visualizer
npm install --save @types/rollup-plugin-visualizer
This package contains type definitions for rollup-plugin-visualizer (https://github.com/doesdev/rollup-plugin-analyzer#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-visualizer.
// Type definitions for rollup-plugin-visualizer 4.2
// Project: https://github.com/doesdev/rollup-plugin-analyzer#readme
// Definitions by: Nick <https://github.com/fobdy>,
// Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 4.2
/// <reference types="node" />
import { Plugin } from "rollup";
declare namespace visualizer {
interface PluginVisualizerOptions {
/**
* Name of the file with diagram to generate
* @default "stats.html"
*/
filename?: string | undefined;
/**
* Title tag value
* @default "Rollup Visualizer"
*/
title?: string | undefined;
/**
* Use sourcemaps to calculate sizes (e.g. after UglifyJs or Terser)
* @default false
*/
sourcemap?: boolean | undefined;
/**
* Open generated file in default user agent
* @default false
*/
open?: boolean | undefined;
/**
* Which diagram type to use
* @default "treemap"
*/
template?: "treemap" | "sunburst" | "network" | undefined;
/**
* Product portable json file that can be used with
* plugin CLI util to generate graph from several json files.
* Every UI property ignored in this case.
* @default false
*/
json?: boolean | undefined;
/**
* Collect gzip size from source code and display it at chart
* @default false
*/
gzipSize?: boolean | undefined;
/**
* Collect brotli size from source code and display it at chart.
* Only if current node version supports it
* @default false
*/
brotliSize?: boolean | undefined;
}
}
declare function visualizer(options?: visualizer.PluginVisualizerOptions): Plugin;
export = visualizer;
These definitions were written by Nick, and Max Boguslavskiy.
FAQs
Stub TypeScript definitions entry for rollup-plugin-visualizer, which provides its own types definitions
The npm package @types/rollup-plugin-visualizer receives a total of 7,148 weekly downloads. As such, @types/rollup-plugin-visualizer popularity was classified as popular.
We found that @types/rollup-plugin-visualizer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.