Socket
Socket
Sign inDemoInstall

@codecov/vite-plugin

Package Overview
Dependencies
194
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @codecov/vite-plugin

Official Codecov Vite plugin


Version published
Weekly downloads
3.7K
increased by14.73%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 10 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc