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
Branches 2
History 2
  1. ffdf65c
    Created (confirmed)by bjornolofandersson
  2. c14f915
    Content editedby Claude
    plan: file BUG-035..037 from WORK-634's findings

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.