1. rollup-plugin-bundle-size
Output the size of your bundle
rollup-plugin-bundle-size
Package: rollup-plugin-bundle-size
Created by: vimeo
Last modified: Sun, 26 Jun 2022 13:58:06 GMT
Version: 1.0.3
License: MIT
Downloads: 325,491
Repository: https://github.com/vimeo/rollup-plugin-bundle-size

Install

npm install rollup-plugin-bundle-size
yarn add rollup-plugin-bundle-size

rollup-plugin-bundle-size npm

A rollup plugin to show the size of the generated bundle(s).

Installation

 npm install --save-dev rollup-plugin-bundle-size

Usage

JS API

 const rollup = require('rollup');
const bundleSize = require('rollup-plugin-bundle-size');

rollup.rollup({
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}).then((bundle) => {
    ...
});

Config File

 import bundleSize from 'rollup-plugin-bundle-size';

export default {
    entry: 'src/index.js',
    plugins: [
        bundleSize()
    ]
}

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code