The SFC (Single File Component) compiler for the Tanni framework, a modern UI library. This package compiles .tanni files into render functions, handling template parsing, style extraction, and script transformation. Current version 0.2.5 is in early development, with weekly releases. Key differentiator: specifically built for Tanni's reactive runtime, pairing tightly with @tannijs/core.
npm install tannijs-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates compiling a Tanni SFC string into JavaScript render code, with source map and error handling.
Replace compileSync(source) with await compile(source).
Remove unused imports from <script> blocks to avoid parse failures.
Add `scoped` attribute to <style> or manually apply data-tanni-id using the hash from compiled result.
Run `npm install @tannijs/compiler` in your project root.
Use `import { compile } from '@tannijs/compiler'` instead of default import.Check the <script> block for missing semicolons or incorrect JavaScript syntax.