import{parseYaml as t}from"@redocly/openapi-core";import{isVirtualFile as i}from"../../../fs/utils/isVirtualFile.js";const s=async(r,{fs:o})=>{try{const e=await o.read(r);return t(e)}catch(e){if(i(r,o))return;throw new Error(`Error parsing YAML file ${r}: ${e.message}`)}};export{s as yamlParser};
