"use strict";var h=(i,a,e)=>new Promise((s,t)=>{var n=c=>{try{r(e.next(c))}catch(l){t(l)}},u=c=>{try{r(e.throw(c))}catch(l){t(l)}},r=c=>c.done?s(c.value):Promise.resolve(c.value).then(n,u);r((e=e.apply(i,a)).next())});const o=require("@code-inspector/core");function d(i,a,e){return h(this,null,function*(){this.async(),this.cacheable&&this.cacheable(!0);const s=o.normalizePath(this.resourcePath),t=this.query;if(o.isExcludedFile(s,t)){this.callback(null,i,a,e);return}i=yield o.getCodeWithWebComponent({options:t,file:s,code:i,record:t.record}),this.callback(null,i,a,e)})}module.exports=d;
