Module @codecov/vite-plugin - v0.0.1-beta.7

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

Index

Functions

Generated using TypeDoc