Codecov SvelteKit Plugin
[!WARNING]
These plugins are currently in beta and are subject to change.
A SvelteKit plugin that provides bundle analysis support for Codecov.
The plugin does not support code coverage, see our docs to set up coverage today!
[!NOTE]
This plugin only support SvelteKit 2.x when building with Vite.
Installation
Using npm:
npm install @codecov/sveltekit-plugin --save-dev
Using yarn:
yarn add @codecov/sveltekit-plugin --dev
Using pnpm:
pnpm add @codecov/sveltekit-plugin --save-dev
Example
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import { codecovSvelteKitPlugin } from "@codecov/sveltekit-plugin";
export default defineConfig({
plugins: [
sveltekit(),
codecovSvelteKitPlugin({
enableBundleAnalysis: true,
bundleName: "example-sveltekit-bundle",
uploadToken: process.env.CODECOV_TOKEN,
}),
],
});
More information