Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

export-size-svg

crimx406MIT0.0.5TypeScript support: included

Generate SVG charts of minimized sizes for selected exports.

export, size, minified, minimize, bundle, analysis, chart, svg, visualization, bundle size, export size, tree-shaking, module size, library size, javascript, typescript, esm, code splitting, optimization, tooling

readme

export-size-svg

Generate SVG charts of minimized sizes for selected exports.

Docs Build Status npm-version

@wopjs/disposable

Usage

Add a .export-size-svg.mjs configuration file to your project root.

import { defineConfig } from "export-size-svg";

export default defineConfig({
  exports: [
    { title: "Total", code: `export * from "./src"` },
    { title: "Core", code: `export { hello } from "./src"` },
    { title: "Total without Core", code: `export * from "./src"`, externals: ["./core"] },
  ],
});

Usage in CLI

npx export-size-svg --out ./docs/images

Usage in package

  1. Install the package:
    npm install export-size-svg --save-dev
  2. package.json:
    {
      "scripts": {
        "export-size": "export-size-svg --out ./docs/images"
      }
    }

Options

See Docs

changelog