[{"data":1,"prerenderedAt":230},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools\u002Frolldown":3},{"id":4,"title":5,"body":6,"description":210,"extension":211,"frontmatter":212,"heading":220,"meta":221,"navigation":223,"order":216,"path":224,"seo":225,"sitemap":226,"source":227,"stem":228,"__hash__":229},"docs\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools\u002Frolldown.md","Rolldown plugin - Generate code from OpenAPI",{"type":7,"value":8,"toc":201},"minimark",[9,25,194],[10,11,12,16,17,20,21,24],"p",{},[13,14,15],"code",{},"kubb\u002Frolldown"," generates code from your ",[13,18,19],{},"kubb.config.ts"," once, before the Rolldown build continues. It ships with ",[13,22,23],{},"kubb",".",[26,27,29,34,42,49,59,183,187],"steps",{"level":28},"2",[30,31,33],"h2",{"id":32},"install-kubb-and-your-plugins","Install Kubb and your plugins",[10,35,36,37,24],{},"Follow ",[38,39,41],"a",{"href":40},"\u002Fdocs\u002F5.x\u002Fintroduction\u002Finstallation","Installation",[30,43,45,46],{"id":44},"add-kubb-to-rolldownconfigts","Add Kubb to ",[13,47,48],{},"rolldown.config.ts",[10,50,51,52,54,55,58],{},"Pass one config object from your ",[13,53,19],{}," as ",[13,56,57],{},"config",", not an array or a function.",[60,61,65],"pre",{"language":62,"filename":48,"code":63,"class":64},"typescript","import kubb from 'kubb\u002Frolldown'\nimport { defineConfig } from 'rolldown'\nimport config from '.\u002Fkubb.config.ts'\n\nexport default defineConfig({\n  input: 'src\u002Findex.ts',\n  plugins: [kubb({ config })],\n})","highlights",[13,66,68,88,89,88,108,88,120,88,122,88,137,88,154,88,178],{"class":67},"language-typescript",[69,70,73,77,81,84],"span",{"class":71,"style":72},"line","display: inline",[69,74,76],{"style":75},"color:#d73a49;--hls-dark:#f97583","import ",[69,78,80],{"style":79},"color:#24292e;--hls-dark:#e1e4e8","kubb ",[69,82,83],{"style":75},"from ",[69,85,87],{"style":86},"color:#032f62;--hls-dark:#9ecbff","'kubb\u002Frolldown'","\n",[69,90,91,93,97,100,103,105],{"class":71,"style":72},[69,92,76],{"style":75},[69,94,96],{"style":95},"color:#005cc5;--hls-dark:#79b8ff","{ ",[69,98,99],{"style":79},"defineConfig ",[69,101,102],{"style":95},"} ",[69,104,83],{"style":75},[69,106,107],{"style":86},"'rolldown'",[69,109,110,112,115,117],{"class":71,"style":72},[69,111,76],{"style":75},[69,113,114],{"style":79},"config ",[69,116,83],{"style":75},[69,118,119],{"style":86},"'.\u002Fkubb.config.ts'",[69,121],{"class":71,"style":72},[69,123,124,127,130,134],{"class":71,"style":72},[69,125,126],{"style":75},"export ",[69,128,129],{"style":75},"default ",[69,131,133],{"style":132},"color:#6f42c1;--hls-dark:#b392f0","defineConfig",[69,135,136],{"style":95},"({",[69,138,139,142,145,148,151],{"class":71,"style":72},[69,140,141],{"style":95},"  ",[69,143,144],{"style":95},"input",[69,146,147],{"style":75},": ",[69,149,150],{"style":86},"'src\u002Findex.ts'",[69,152,153],{"style":75},",",[69,155,156,158,161,163,166,168,171,173,176],{"class":71,"style":72},[69,157,141],{"style":75},[69,159,160],{"style":95},"plugins",[69,162,147],{"style":75},[69,164,165],{"style":95},"[",[69,167,23],{"style":132},[69,169,170],{"style":95},"({ ",[69,172,114],{"style":79},[69,174,175],{"style":95},"})]",[69,177,153],{"style":75},[69,179,180],{"class":71,"style":72},[69,181,182],{"style":95},"})",[30,184,186],{"id":185},"run-the-build","Run the build",[10,188,189,190,193],{},"Run ",[13,191,192],{},"rolldown -c",". If Kubb fails, the build fails.",[10,195,196,200],{},[38,197,199],{"href":198},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools#how-the-build-runs-kubb","How the build runs Kubb"," covers defaults, reports, and watch rebuilds.",{"title":202,"searchDepth":203,"depth":203,"links":204},"",5,[205,207,209],{"id":32,"depth":206,"text":33},2,{"id":44,"depth":206,"text":208},"Add Kubb to rolldown.config.ts",{"id":185,"depth":206,"text":186},"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":213,"title":5,"description":210,"outline":214,"order":216,"navigation":217},"doc",[206,215],3,9,{"title":218,"icon":219},"Rolldown","i-simple-icons-rolldown","Generate code from your API spec with Rolldown",{"layout":213,"outline":222},[206,215],{"title":218,"icon":219},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools\u002Frolldown",{"title":5,"description":210},{"loc":224},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fintegrations\u002Fbuild-tools\u002Frolldown.md","docs\u002F5.x\u002Fintegrations\u002Fbuild-tools\u002Frolldown","RdKmwGonzsV8WnzVKsJ-8FwFw3lSEnsm4pEC_nPS5Dw",1795021322883]