import{generateApiRequestHandlersEntry as n}from"./codegen/index.js";const t="api-request-handlers-ns",l=e=>({name:"esbuild-redocly-api-request-handlers-resolver",setup:r=>{r.onResolve({filter:/@portal\/api-request-handlers/},s=>{const a=Array.from(e.apiRoutesRequestHandlers.values());return{namespace:t,path:s.path,watchFiles:a}}),r.onLoad({filter:/@portal\/api-request-handlers/,namespace:t},()=>({contents:n(Array.from(e.apiRoutesRequestHandlers.entries())),resolveDir:"/",loader:"ts"}))}});export{l as ApiRequestHandlersResolver};
