Integrations
Generate with Rolldown
Run Kubb code generation during Rolldown builds.
Install Kubb and your output plugins, then create a Kubb config. The integration uses unplugin-kubb, included with kubb.
Configure the integration
Import your shared kubb.config.ts and pass it to the integration:
rolldown.config.ts
import kubb from 'kubb/rolldown'
import { defineConfig } from 'rolldown'
import config from './kubb.config'
export default defineConfig({
input: 'src/index.ts',
plugins: [kubb({ config })],
})
Run your project's Rolldown build command to generate the files. Bundler integrations do not run output.postGenerate commands; use the CLI when you need them.