diff --git a/src/utils/yaml.ts b/src/utils/yaml.ts index 637a7a597..d8eb97c6a 100644 --- a/src/utils/yaml.ts +++ b/src/utils/yaml.ts @@ -7,7 +7,7 @@ */ export function parseYaml(input: string): unknown { - if (typeof Bun !== 'undefined') { + if (typeof Bun !== 'undefined' && Bun.YAML?.parse) { return Bun.YAML.parse(input) } // eslint-disable-next-line @typescript-eslint/no-require-imports