Configure the agent to collect, filter and send bundle stats and build information to RelativeCI.
This page contains the setup guide for the RelativeCI agent v5. Go to RelativeCI agent v4 to follow the setup guide for the previous version.
The RelativeCI agent runs in your CI pipeline during or after a build task. It collects the bundle stats JSON file, reads build metadata (branch, commit, pull request), and sends the data to RelativeCI for analysis.
The agent supports the following bundlers and frameworks:
- Bundlers: Vite, webpack, rspack, Rollup, Rolldown
- Frameworks: Next.js, Nuxt, Gatsby, Astro, SvelteKit, or any other frameworks that use a supported bundler
It is also compatible with any other bundler that produces a supported stats file format.
Select a method to setup and configure the agent:
GitHub Action
Recommended for open-source projects or projects with strict security policies
- Support for forks and unsecure workflows (eg: dependabot)
Support for webpack, rspack, vite, rollup, Next.js, Nuxt, Gatsby, Astro, SvelteKit, etc
Command line (CLI)
- Recommended for projects with advanced configuration
Two steps setup that offers advanced control for the bundle stats artifact and ingestion job
Support for webpack, rspack, vite, rollup, Next.js, Nuxt, Gatsby, Astro, SvelteKit, etc
Webpack Plugin
- Recommended for small/medium size private projects
- One step setup
- Support for webpack, rspack, Next.js, Gatsby, etc
Rollup Plugin
- Recommended for small/medium size private projects
- One step setup
- Support for Rollup, Vite, Rolldown