@codecov/vite-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta.6 • Public • Published

Codecov by Sentry logo

Codecov Vite Plugin

[!WARNING]
These plugins are currently in beta and are subject to change.

A Vite plugin that provides bundle analysis support for Codecov.

The plugin does not support code coverage, see our docs to set up coverage today!

Installation

Using npm:

npm install @codecov/vite-plugin --save-dev

Using yarn:

yarn add @codecov/vite-plugin --dev

Using pnpm:

pnpm add @codecov/vite-plugin --save-dev

Example

// vite.config.js
import { defineConfig } from "vite";
import { codecovVitePlugin } from "@codecov/vite-plugin";

export default defineConfig({
  plugins: [
    // Put the Codecov vite plugin after all other plugins
    codecovVitePlugin({
      enableBundleAnalysis: true,
      bundleName: "example-vite-bundle",
      uploadToken: process.env.CODECOV_TOKEN,
    }),
  ],
});

More information

Package Sidebar

Install

npm i @codecov/vite-plugin

Weekly Downloads

3,597

Version

0.0.1-beta.6

License

MIT

Unpacked Size

31.1 kB

Total Files

10

Last publish

Collaborators

  • codecov-devops
  • trent-codecov
  • nicholas-codecov
  • hootener
  • drazisil