SolidStart Quick Start

Quick start guide for Codecov Bundle Analysis and SolidStart.

Step 1: Install the Codecov SolidStart Plugin

To install the @codecov/solidstart-plugin to your project, use the following commands.

npm install @codecov/solidstart-plugin --save-dev
yarn add @codecov/solidstart-plugin --dev
pnpm add @codecov/solidstart-plugin --save-dev

Step 2: Configure the bundler plugin

Add the plugin to the end of your plugins array found inside your app.config.ts file, and pass your configuration.

YYou can find a Codecov upload token on the Configuration page for your repository, under General, or your organization settings page in the Codecov UI. For more information, see the documentation.

import { defineConfig } from "@solidjs/start/config";
import solidPlugin from "vite-plugin-solid";
import { codecovSolidStartPlugin } from "@codecov/solidstart-plugin";

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

Step 3: Commit and push your latest changes

The plugin requires at least one commit to be made to properly upload bundle analysis information to Codecov.

git add -A && git commit -m "Add Codecov bundler plugin" && git push

Step 4: Build the Application

When building your application the plugin will automatically upload the stats information to Codecov.

npm run build
yarn run build
pnpm run build

Sending Telemetry Data on Issues and Performance

By default, Codecov's bundler plugins collects telemetry data on issues and performance metrics internally, enabling us to analyze the plugins for performance and monitor potential issues.

You can opt-out of sending this telemetry data by setting the options.telemetry option in the plugin config to false. For example if you're using the SolidStart plugin, the Codecov plugin configuration might look like the following:

codecovSolidStartPlugin({
  enableBundleAnalysis: true,
  bundleName: "example-solidstart-bundle",
  uploadToken: process.env.CODECOV_TOKEN,
  telemetry: false // <- Setting to false
  // ... other options
}),

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy