Registry / devops / yakumo-esbuild-yaml

yakumo-esbuild-yaml

JSON →
library0.3.1jsnpmunverified

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.

npm install yakumo-esbuild-yaml
INSTALL
IMPORT
SIG · YAKUMO-ESBUILD-YAM
Y
yakumo-esbuild-yaml
devopsjavascriptv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ import yaml from 'yakumo-esbuild-yaml'
✗ const yaml = require('yakumo-esbuild-yaml')
ESM-only package; default export is the plugin factory.
plugin name
✓ import yaml from 'yakumo-esbuild-yaml'
✗ import { yaml } from 'yakumo-esbuild-yaml'
The package only has a default export. Named exports are not available.
type
✓ import type { Yake } from 'yakumo-esbuild-yaml'
✗ import { Yake } from 'yakumo-esbuild-yaml'
Type-only export; avoid value import.

Shows how to import and use the default export of yakumo-esbuild-yaml in a yakumo configuration file.

import yaml from 'yakumo-esbuild-yaml' // In yakumo config file (e.g., .yakumo.yml) export default { plugins: [ // ... other plugins yaml(), ], }
Debug
Known issues
deprecatedPackage version 0.3.0 and earlier used a different default export signature.
fix
Update to 0.3.1 and adjust usage: default export no longer requires arguments.
affects: <=0.3.0
gotchaThis plugin only supports YAML files (`.yaml`, `.yml`). It does not handle JSON5 or other data formats.
fix
Use separate plugins for other formats.
affects: all
gotchaRequires both yakumo and yakumo-esbuild as peer dependencies. Missing them will cause runtime errors.
fix
Install peer dependencies: npm install yakumo yakumo-esbuild
affects: all
breakingIn 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.
fix
Update imports to use the correct package name.
affects: <0.3.0
Errors
Common errors & fixes
Cannot find module 'yakumo-esbuild-yaml'
Package not installed or missing from node_modules
fix
npm install yakumo-esbuild-yaml
Plugin must be a function or object with 'apply' method
Calling the default export incorrectly, e.g., passing arguments when not expected
fix
Use yaml() without arguments (as a factory) or check version compatibility.
Upgrade
Version history
0.3.1latest on npm
Audit
Dependencies
yakumorequiredpeer dependency, core framework
yakumo-esbuildrequiredpeer dependency, provides esbuild integration
Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
yakumo-esbuild-yaml — npm install yakumo-esbuild-yaml · libregistry