BUG-036
ID:BUG-036Status:confirmed

The HTML starter never passes plugins to loadContent

Found by WORK-634 (#695).

packages/create-refrakt/template-html/build.ts calls loadContent without the plugins option. Its own comment (around line 127) says plugins should be passed through, matching the option shape createRefraktLoader uses for the Vite-based adapters. As a result:

Severity:majorSource:SPEC-109
claude/post-v0.38-roadmap-jb7pie View source
Branches 2
claude/post-v0.38-roadmap-jb7pie current confirmed
claude/v041-plan-runes-keep-content confirmedmain confirmed
History 1
  1. c14f915
    Created (confirmed)by bjornolofandersson

Steps to Reproduce

  1. npx create-refrakt my-site --template html, and add a plugin with pipeline hooks (e.g. @refrakt-md/storytelling) to refrakt.config.json.
  2. Write two pages, one with a {% character %} and one with a {% bond %} naming it.
  3. Build.

Expected

The bond's edge is registered, the same as in the SvelteKit adapter.

Actual

No registrations. Plugin hooks never ran.

Fix

Load the configured plugins and pass them to loadContent, as the other adapters do. Cover it with a scaffold test that asserts a plugin hook ran.