4.2.4 • Published 3 months ago

@types/rollup-plugin-visualizer v4.2.4

Weekly downloads
3,141
License
MIT
Repository
github
Last release
3 months ago

Installation

npm install --save @types/rollup-plugin-visualizer

Summary

This package contains type definitions for rollup-plugin-visualizer (https://github.com/doesdev/rollup-plugin-analyzer#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rollup-plugin-visualizer.

index.d.ts

// 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;

Additional Details

Credits

These definitions were written by Nick, and Max Boguslavskiy.

4.2.4

3 months ago

4.2.3

7 months ago

4.2.2

7 months ago

4.2.1

3 years ago

4.2.0

3 years ago

2.6.0

5 years ago