wind-compiler

raw JSON →
0.0.30 verified Fri May 01 auth: no javascript

Template compiler for wind-reactive, a reactive UI library. Version 0.0.30 is the latest as of 2025-12-22. Unlikely to be stable given the 0.x version range. Differentiators from other template compilers are minimal; appears to be a niche project. Not recommended for production use. No maintainers listed.

error Cannot find module 'wind-compiler'
cause Package not installed or not in node_modules.
fix
Run 'npm install wind-compiler@0.0.30'.
error require() of ES Module not supported
cause Using CommonJS require() with an ESM-only package.
fix
Use import statement or set type: 'module' in package.json.
gotcha Version 0.0.30 is pre-release; API may change without notice.
fix Pin exact version and test with every update.
gotcha No README or documentation available; API must be inferred from source.
fix Check source code or contact maintainer.
gotcha Only supports ESM imports; CommonJS require will fail.
fix Use import syntax or dynamic import() in CJS.
npm install wind-compiler
yarn add wind-compiler
pnpm add wind-compiler

Shows basic usage of the compile function to transform a template string into a reactive render function.

import { compile } from 'wind-compiler';

const code = '<div>{greeting}</div>';
const result = compile(code, { mode: 'runtime' });
console.log(result);