Compiler for Riot.js .tag files, transforming custom tag syntax (HTML + JavaScript) into standard JavaScript modules. Current stable version is 10.0.1 (2024), with major breaking changes in v10.0.0: dropped Node <22, switched from `assert` to `with` for JSON imports, and changed boolean attribute handling on root nodes. v9.x series is in maintenance. Key differentiator: tightly coupled to Riot.js library, designed specifically for Riot's tag-based component model. Release cadence: irregular, with major versions tied to Riot.js updates.
npm install riot-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile a basic Riot.js .tag file with an ES module script tag.
Update Node.js version to >=22; ensure imports use ESM syntax.
Review component templates: use explicit attribute bindings or update Riot.js to latest.
Update JSON import statements: replace `assert { type: 'json' }` with `with { type: 'json' }`.Upgrade to v10.x for ongoing support.
Add "type": "module" to your package.json or rename file to .mjs.
Replace `assert { type: 'json' }` with `with { type: 'json' }`.No dependency data recorded yet.