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
| Bundler | Import | Guide |
|---|---|---|
| Vite | kubb/vite | Generate with Vite |
| webpack | kubb/webpack | Generate with webpack |
| Rollup | kubb/rollup | Generate with Rollup |
| Rolldown | kubb/rolldown | Generate with Rolldown |
| Rspack | kubb/rspack | Generate with Rspack |
| esbuild | kubb/esbuild | Generate with esbuild |
| Farm | kubb/farm | Generate with Farm |
| Nuxt | kubb/nuxt | Generate with Nuxt |
| Astro | kubb/astro | Generate 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.