Lexer and parser for the Idyll markup language, converting Idyll source into an abstract syntax tree (AST). Current version is 5.0.0-alpha.2, with active development. It allows embedding Idyll documents in web pages when combined with idyll-document. Key differentiators: provides a full AST for custom processing, supports async compilation, and is part of the Idyll ecosystem. It is ESM-only and requires Node.js 12+.
npm install idyll-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a simple Idyll string with variable and inline element into an AST, then logs it.
Use import syntax and ensure your project supports ESM ("type": "module" in package.json).Use .then/catch or async/await instead of callback.
Set { async: false } to avoid Webpack issues with dynamic imports.Validate your Idyll syntax. Use an Idyll linter or check brackets.
Use `import { compile } from 'idyll-compiler'`.Run `npm install idyll-compiler` and ensure it's in dependencies.
No dependency data recorded yet.