0.1.1 • Published 9 months ago

vite-plugin-lib-reporter v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

vite-plugin-lib-reporter

Add in your CI a limit check of one of these stats:

example

Installation

pnpm add vite-plugin-lib-reporter -D

Configuration

Add in your vite.config.ts:

import { sveltekit } from "@sveltejs/kit/vite";
import { libReporter } from "vite-plugin-lib-reporter"; // 👈 1/ add import
import type { UserConfig } from "vite";

const config: UserConfig = {
  plugins: [
    sveltekit(),

    /*                  */
    /*   2/ Config 👇   */
    /*                  */
    libReporter([
      {
        name: 'My-Super-Lib-To-Check',
        includes: ['My-Super-Lib-To-Check'],
        // excludes: ["svelte"], // optional
        // always_log_report: false,
        limit: {
          treeshaked: {
            compressed_max: 7,
          },
        },
      },
    ]),

  ],
};

export default config;
  • Either your build will pass ✅
  • Either it will fail because you are hitting a limit you configured. ❌

Visualize your report?

Just run 👇

npm run libReport

example

0.1.1

9 months ago

0.1.0

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago