{"id":26671,"library":"yakumo-esbuild-yaml","title":"yakumo-esbuild-yaml","description":"A yakumo plugin that adds YAML file support to the esbuild compiler. Version 0.3.1. This plugin integrates with yakumo and its esbuild plugin to allow importing .yaml/.yml files as JavaScript objects. Unlike generic yaml loaders for esbuild, this one is specifically designed for the yakumo build system and respects its plugin pipeline. It is a thin wrapper providing a yakumo-specific interface. Releases are periodic, following yakumo ecosystem updates. Ships TypeScript declarations.","status":"active","version":"0.3.1","language":"javascript","source_language":"en","source_url":"https://github.com/shigma/yakumo","tags":["javascript","yakumo","plugin","extension","yaml","esbuild","compile","typescript"],"install":[{"cmd":"npm install yakumo-esbuild-yaml","lang":"bash","label":"npm"},{"cmd":"yarn add yakumo-esbuild-yaml","lang":"bash","label":"yarn"},{"cmd":"pnpm add yakumo-esbuild-yaml","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency, core framework","package":"yakumo","optional":false},{"reason":"peer dependency, provides esbuild integration","package":"yakumo-esbuild","optional":false}],"imports":[{"note":"ESM-only package; default export is the plugin factory.","wrong":"const yaml = require('yakumo-esbuild-yaml')","symbol":"default","correct":"import yaml from 'yakumo-esbuild-yaml'"},{"note":"The package only has a default export. Named exports are not available.","wrong":"import { yaml } from 'yakumo-esbuild-yaml'","symbol":"plugin name","correct":"import yaml from 'yakumo-esbuild-yaml'"},{"note":"Type-only export; avoid value import.","wrong":"import { Yake } from 'yakumo-esbuild-yaml'","symbol":"type","correct":"import type { Yake } from 'yakumo-esbuild-yaml'"}],"quickstart":{"code":"import yaml from 'yakumo-esbuild-yaml'\n\n// In yakumo config file (e.g., .yakumo.yml)\nexport default {\n  plugins: [\n    // ... other plugins\n    yaml(),\n  ],\n}","lang":"typescript","description":"Shows how to import and use the default export of yakumo-esbuild-yaml in a yakumo configuration file."},"warnings":[{"fix":"Update to 0.3.1 and adjust usage: default export no longer requires arguments.","message":"Package version 0.3.0 and earlier used a different default export signature.","severity":"deprecated","affected_versions":"<=0.3.0"},{"fix":"Use separate plugins for other formats.","message":"This plugin only supports YAML files (`.yaml`, `.yml`). It does not handle JSON5 or other data formats.","severity":"gotcha","affected_versions":"all"},{"fix":"Install peer dependencies: npm install yakumo yakumo-esbuild","message":"Requires both yakumo and yakumo-esbuild as peer dependencies. Missing them will cause runtime errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Update imports to use the correct package name.","message":"In version 0.2.x, the plugin was named 'yaml' but exported via a different path. Starting 0.3.0, it is 'yakumo-esbuild-yaml' as a standalone package.","severity":"breaking","affected_versions":"<0.3.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install yakumo-esbuild-yaml","cause":"Package not installed or missing from node_modules","error":"Cannot find module 'yakumo-esbuild-yaml'"},{"fix":"Use yaml() without arguments (as a factory) or check version compatibility.","cause":"Calling the default export incorrectly, e.g., passing arguments when not expected","error":"Plugin must be a function or object with 'apply' method"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}