import{defaultResolve as r}from"./lib/resolve.mjs";export{moduleResolve}from"./lib/resolve.mjs";function e(e,o){if(!o)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return r(e,{parentURL:o}).url}catch(r){const e=r;if(("ERR_UNSUPPORTED_DIR_IMPORT"===e.code||"ERR_MODULE_NOT_FOUND"===e.code)&&"string"==typeof e.url)return e.url;throw r}}export{e as resolve};