[{"data":1,"prerenderedAt":199},["ShallowReactive",2],{"page:\u002Fdocs\u002F5.x\u002Fintegrations\u002Frollup":3},{"id":4,"title":5,"body":6,"description":180,"extension":181,"frontmatter":182,"heading":5,"meta":190,"navigation":192,"order":186,"path":193,"seo":194,"sitemap":195,"source":196,"stem":197,"__hash__":198},"docs\u002Fdocs\u002F5.x\u002Fintegrations\u002Frollup.md","Generate code from your API spec with Rollup",{"type":7,"value":8,"toc":173},"minimark",[9],[10,11,13,18,37,41,56,160],"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","rollup.config.ts","import kubb from 'kubb\u002Frollup'\nimport config from '.\u002Fkubb.config'\n\nexport default {\n  input: 'src\u002Findex.ts',\n  plugins: [kubb({ config })],\n}","highlights",[29,64,66,86,87,86,99,86,101,86,113,86,130,86,155],{"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\u002Frollup'","\n",[67,88,89,91,94,96],{"class":69,"style":70},[67,90,74],{"style":73},[67,92,93],{"style":77},"config ",[67,95,81],{"style":73},[67,97,98],{"style":84},"'.\u002Fkubb.config'",[67,100],{"class":69,"style":70},[67,102,103,106,109],{"class":69,"style":70},[67,104,105],{"style":73},"export ",[67,107,108],{"style":73},"default ",[67,110,112],{"style":111},"color:#005cc5;--hls-dark:#79b8ff","{",[67,114,115,118,121,124,127],{"class":69,"style":70},[67,116,117],{"style":111},"  ",[67,119,120],{"style":111},"input",[67,122,123],{"style":73},": ",[67,125,126],{"style":84},"'src\u002Findex.ts'",[67,128,129],{"style":73},",",[67,131,132,134,137,139,142,145,148,150,153],{"class":69,"style":70},[67,133,117],{"style":73},[67,135,136],{"style":111},"plugins",[67,138,123],{"style":73},[67,140,141],{"style":111},"[",[67,143,31],{"style":144},"color:#6f42c1;--hls-dark:#b392f0",[67,146,147],{"style":111},"({ ",[67,149,93],{"style":77},[67,151,152],{"style":111},"})]",[67,154,129],{"style":73},[67,156,157],{"class":69,"style":70},[67,158,159],{"style":111},"}",[161,162,164,165,168,169,36],"blockquote",{"as":163},"note","Bundler integrations apply fewer defaults than the CLI: no Markdown parser, no reporters, and no ",[29,166,167],{},"output.postGenerate"," commands. Use the CLI when you need them. See ",[23,170,172],{"href":171},"\u002Fdocs\u002F5.x\u002Freference\u002Fconfiguration#defaults","Defaults",{"title":174,"searchDepth":175,"depth":175,"links":176},"",5,[177,179],{"id":16,"depth":178,"text":17},2,{"id":39,"depth":178,"text":40},"Add the kubb\u002Frollup plugin to rollup.config.ts so every Rollup build generates code from your API spec with the plugins in your kubb.config.ts.","md",{"layout":183,"title":5,"description":180,"outline":184,"order":186,"navigation":187},"doc",[178,185],3,8,{"title":188,"icon":189},"Rollup","i-simple-icons-rollupdotjs",{"layout":183,"outline":191},[178,185],{"title":188,"icon":189},"\u002Fdocs\u002F5.x\u002Fintegrations\u002Frollup",{"title":5,"description":180},{"loc":193},"kubb-labs\u002Fkubb\u002Fdocs\u002F5.x\u002Fintegrations\u002Frollup.md","docs\u002F5.x\u002Fintegrations\u002Frollup","8fdUFyX6MbAEBdu1jBxA0PfkKxm8H0ZBsBp5KKq7iww",1792931641680]