Integrations
Run Kubb with Rolldown
Run Kubb as part of your Rolldown build with kubb/rolldown.
kubb/rolldown runs Kubb as a Rolldown plugin. Rolldown is a Rust-based, Rollup-compatible bundler. Pass your Kubb config to the config option.
Install
Install kubb as a dev dependency.
bun add -d kubbpnpm add -D kubbnpm install --save-dev kubbyarn add -D kubbConfigure
Add the plugin to your rolldown.config.ts:
rolldown.config.ts
import kubb from 'kubb/rolldown'import { defineConfig } from 'rolldown'import { pluginTs } from '@kubb/plugin-ts'const config = { root: '.', input: './petStore.yaml', output: { path: './src/gen', clean: true }, plugins: [pluginTs({ output: { path: 'models' } })],}export default defineConfig({ input: 'src/index.ts', plugins: [kubb({ config })],})