[{"data":1,"prerenderedAt":219},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fintegrations\u002Frolldown":3},{"id":4,"title":5,"body":6,"description":200,"extension":201,"frontmatter":202,"heading":5,"meta":210,"navigation":212,"order":206,"path":213,"seo":214,"sitemap":215,"source":216,"stem":217,"__hash__":218},"docs\u002Fdocs\u002F5.x\u002Fintegrations\u002Frolldown.md","Generate code from your API spec with Rolldown",{"type":7,"value":8,"toc":193},"minimark",[9],[10,11,13,18,37,41,56,180],"steps",{"level":12},"2",[14,15,17],"h2",{"id":16},"install-kubb-and-your-output-plugins","Install Kubb and your output plugins",[19,20,21,22,27,28,32,33,36],"p",{},"Follow the ",[23,24,26],"a",{"href":25},"\u002Fdocs\u002F5.x\u002Fhow-to\u002Finstallation","installation guide"," to add Kubb and the plugins your output needs. The integration ships with ",[29,30,31],"code",{},"kubb"," as ",[29,34,35],{},"unplugin-kubb",".",[14,38,40],{"id":39},"configure-the-integration","Configure the integration",[19,42,43,44,47,48,51,52,55],{},"Import your shared ",[29,45,46],{},"kubb.config.ts"," and pass it to the integration. The ",[29,49,50],{},"config"," must be a single object, not the array or function forms ",[29,53,54],{},"defineConfig"," accepts. Run the build command of your tool to generate the files.",[57,58,63],"pre",{"language":59,"filename":60,"code":61,"class":62},"typescript","rolldown.config.ts","import kubb from 'kubb\u002Frolldown'\nimport { defineConfig } from 'rolldown'\nimport config from '.\u002Fkubb.config'\n\nexport default defineConfig({\n  input: 'src\u002Findex.ts',\n  plugins: [kubb({ config })],\n})","highlights",[29,64,66,86,87,86,106,86,118,86,120,86,134,86,151,86,175],{"class":65},"language-typescript",[67,68,71,75,79,82],"span",{"class":69,"style":70},"line","display: inline",[67,72,74],{"style":73},"color:#d73a49;--hls-dark:#f97583","import ",[67,76,78],{"style":77},"color:#24292e;--hls-dark:#e1e4e8","kubb ",[67,80,81],{"style":73},"from ",[67,83,85],{"style":84},"color:#032f62;--hls-dark:#9ecbff","'kubb\u002Frolldown'","\n",[67,88,89,91,95,98,101,103],{"class":69,"style":70},[67,90,74],{"style":73},[67,92,94],{"style":93},"color:#005cc5;--hls-dark:#79b8ff","{ ",[67,96,97],{"style":77},"defineConfig ",[67,99,100],{"style":93},"} ",[67,102,81],{"style":73},[67,104,105],{"style":84},"'rolldown'",[67,107,108,110,113,115],{"class":69,"style":70},[67,109,74],{"style":73},[67,111,112],{"style":77},"config ",[67,114,81],{"style":73},[67,116,117],{"style":84},"'.\u002Fkubb.config'",[67,119],{"class":69,"style":70},[67,121,122,125,128,131],{"class":69,"style":70},[67,123,124],{"style":73},"export ",[67,126,127],{"style":73},"default ",[67,129,54],{"style":130},"color:#6f42c1;--hls-dark:#b392f0",[67,132,133],{"style":93},"({",[67,135,136,139,142,145,148],{"class":69,"style":70},[67,137,138],{"style":93},"  ",[67,140,141],{"style":93},"input",[67,143,144],{"style":73},": ",[67,146,147],{"style":84},"'src\u002Findex.ts'",[67,149,150],{"style":73},",",[67,152,153,155,158,160,163,165,168,170,173],{"class":69,"style":70},[67,154,138],{"style":73},[67,156,157],{"style":93},"plugins",[67,159,144],{"style":73},[67,161,162],{"style":93},"[",[67,164,31],{"style":130},[67,166,167],{"style":93},"({ ",[67,169,112],{"style":77},[67,171,172],{"style":93},"})]",[67,174,150],{"style":73},[67,176,177],{"class":69,"style":70},[67,178,179],{"style":93},"})",[181,182,184,185,188,189,36],"blockquote",{"as":183},"note","Bundler integrations apply fewer defaults than the CLI: no Markdown parser, no reporters, and no ",[29,186,187],{},"output.postGenerate"," commands. Use the CLI when you need them. See ",[23,190,192],{"href":191},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#defaults","Defaults",{"title":194,"searchDepth":195,"depth":195,"links":196},"",5,[197,199],{"id":16,"depth":198,"text":17},2,{"id":39,"depth":198,"text":40},"Add the kubb\u002Frolldown plugin to rolldown.config.ts so every Rolldown build generates code from your API spec with the plugins in your kubb.config.ts.","md",{"layout":203,"title":5,"description":200,"outline":204,"order":206,"navigation":207},"doc",[198,205],3,9,{"title":208,"icon":209},"Rolldown","i-simple-icons-rolldown",{"layout":203,"outline":211},[198,205],{"title":208,"icon":209},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Frolldown",{"title":5,"description":200},{"loc":213},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fintegrations\u002Frolldown.md","docs\u002F5.x\u002Fintegrations\u002Frolldown","vLxISDBS-kOtiPNBiu9ujKReOGPiaGP9JEoXPY7xjV8",1792931641474]