Skip to content
Integrations

Build tools

Run Kubb during a Vite, webpack, Rollup, Rolldown, Rspack, esbuild, Farm, Nuxt, or Astro build.

Kubb runs generation during your build through unplugin-kubb, included with kubb. Each integration takes your shared kubb.config.ts as a single config object and generates when the tool builds.

Supported bundlers

BundlerImportGuide
Vitekubb/viteGenerate with Vite
webpackkubb/webpackGenerate with webpack
Rollupkubb/rollupGenerate with Rollup
Rolldownkubb/rolldownGenerate with Rolldown
Rspackkubb/rspackGenerate with Rspack
esbuildkubb/esbuildGenerate with esbuild
Farmkubb/farmGenerate with Farm
Nuxtkubb/nuxtGenerate with Nuxt
Astrokubb/astroGenerate with Astro

Vite, Nuxt, and Astro generate during builds only. Run kubb generate before starting their development servers.

Bundler integrations apply fewer defaults than the CLI: no Markdown parser, no reporters, and no output.postGenerate commands. See Defaults.