component-hogan

raw JSON →
0.0.1 verified Fri May 01 auth: no javascript deprecated

A plugin for component/builder.js that transpiles Mustache templates into JavaScript using Hogan. Version 0.0.1, no recent releases. It is an older tool specific to the component build system (predecessor to Duo) and is largely unmaintained. Differentiators: integrates with component's build pipeline to precompile Mustache templates.

error Cannot find module 'component-hogan'
cause Package not installed or missing from node_modules.
fix
Run npm install component-hogan and ensure it is listed in your project's dependencies.
error Error: must be using component >= 0.13.0 to use plugins
cause Version of component/builder is too old.
fix
Update component to version 0.13.0 or later: npm update component-builder.
deprecated Package is unmaintained; component/builder.js has been superseded by modern tools like webpack or Parcel.
fix Migrate to a modern build system with Mustache support (e.g., using hogan.js directly or a webpack loader).
npm install component-hogan
yarn add component-hogan
pnpm add component-hogan

Configure component.json to include Mustache templates and build with the plugin.

// In your component.json
{
  "templates": ["template.stache", "another.mustache"]
}

// Build command
component build --use component-hogan