Socket
Book a DemoInstallSign in
Socket

esbuild-plugin-summary

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-summary

esbuild plugin for showing build summary: time and size

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
23
-87.7%
Maintainers
1
Weekly downloads
 
Created
Source

esbuild-plugin-summary

Plugin for esbuild to output the same build summary info (time and filesize) when using the API to build as the CLI.

Example output

Install

npm i esbuild esbuild-plugin-summary

Usage

import * as esbuild from "esbuild";
import { summaryPlugin } from "esbuild-plugin-summary";

esbuild.build({
  entryPoints: ["src/index.js"],
  outfile: "dist/index.js",
  plugins: [summaryPlugin()],
});

To include the sizes of the output files set includeSizes to true.

esbuild.build({
  entryPoints: ["src/index.js"],
  outfile: "dist/index.js",
  plugins: [summaryPlugin({ includeSizes: true })],
});

Keywords

esbuild

FAQs

Package last updated on 10 Sep 2023

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