API リファレンス
@b4moss/hyogen-md が公開する API の索引です。データソースは 0.12.0、CLI / defineConfig は 0.13.0 から。
| API | パッケージ | 用途 |
|---|
defineConfig | @b4moss/hyogen-md/config | `hyogen.config.(js |
| API | 用途 |
|---|
| loader | include / component / extend のパス解決 |
createNodeLoader | Node 用(FS + リモート fetch) |
createFsLoader | ローカル FS のみ |
| API | 用途 |
|---|
| 診断とログ | formatDiagnosticLog、警告の扱い |
| エラーコード | code 一覧 |
createHyogenError | カスタム loader 等でのエラー生成 |
formatMessage | メッセージテンプレートの整形 |
型とオプション に HyogenContext、RenderOptions、BuildOptions などの要約があります。
- サーバー専用データは
serverContext で渡します(renderServer / build のみ) - クライアントでは
serverContext を渡せません(server_context_on_client エラー) - ライブラリは console に自動出力しません。ログは呼び出し側が
formatDiagnosticLog で整形します