• Version 10.0.0
  • Published
  • 36.5 kB
  • 8 dependencies
  • MIT license


npm i rollup-plugin-filesize
yarn add rollup-plugin-filesize
pnpm add rollup-plugin-filesize


A rollup plugin to show filesize in the cli



function filesize

filesize: (options?: FileSizePluginOptions) => Plugin;


    interface FileSizeInfo

    interface FileSizeInfo {}

      property brotliSize

      brotliSize: string;

        property brotliSizeBefore

        brotliSizeBefore?: string;

          property bundleSize

          bundleSize: string;

            property bundleSizeBefore

            bundleSizeBefore?: string;

              property fileName

              fileName: string;

                property gzipSize

                gzipSize: string;

                  property gzipSizeBefore

                  gzipSizeBefore?: string;

                    property lastVersion

                    lastVersion?: string;

                      property minSize

                      minSize: string;

                        property minSizeBefore

                        minSizeBefore?: string;

                          interface FileSizeOptions

                          interface FileSizeOptions {}

                            property format

                            format?: Parameters<typeof partial>[0];

                              property render

                              render?: FileSizeRender<string>;

                                property showBeforeSizes

                                showBeforeSizes?: 'release' | 'build' | 'none';

                                  property showBrotliSize

                                  showBrotliSize?: boolean;

                                    property showGzippedSize

                                    showGzippedSize?: boolean;

                                      property showMinifiedSize

                                      showMinifiedSize?: boolean;

                                        property theme

                                        theme?: 'dark' | 'light';

                                          interface FileSizePluginOptions

                                          interface FileSizePluginOptions extends FileSizeOptions {}

                                            property reporter

                                            reporter?: FileSizeReporter | FileSizeReporter[];

                                              Type Aliases

                                              type FileSizeRender

                                              type FileSizeRender<T> = (
                                              options: FileSizeOptions,
                                              outputOptions: OutputOptions,
                                              info: FileSizeInfo
                                              ) => T;

                                                type FileSizeReporter

                                                type FileSizeReporter = 'boxen' | FileSizeRender<string | Promise<string>>;

                                                  Package Files (1)

                                                  Dependencies (8)

                                                  Dev Dependencies (17)

                                                  Peer Dependencies (0)

                                                  No peer dependencies.


                                                  To add a badge like this badgeto your package's README, use the codes available below.

                                                  You may also use to create a custom badge linking to

                                                  • Markdown
                                                  • HTML
                                                    <a href=""><img src="" alt=""></a>