RedomX

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

RedomX (v0.2.0) is a transpiler that converts HTML-like syntax into RE:DOM code, enabling a JSX-like experience for building DOM applications with RE:DOM. It replaces HTML markup with Redom function calls at build time. Released in early development, it lacks stability guarantees and has no recent updates. Unlike JSX, it targets RE:DOM specifically and requires a build step.

error ERR_REQUIRE_ESM
cause Using require() on an ESM-only package.
fix
Use import syntax instead of require(): import redomx from 'redomx'
error TypeError: transform is not a function
cause Incorrect import or package not installed.
fix
Install redomx and use named import: import { transform } from 'redomx'
breaking API may change without notice in v0.x
fix Pin exact version and test upgrades.
gotcha ESM-only package; requires native ESM or bundler support.
fix Use import syntax or a bundler like Rollup/Webpack.
gotcha Only supports RE:DOM syntax; not generic JSX.
fix Ensure input is valid RedomX template syntax.
npm install redomx
yarn add redomx
pnpm add redomx

Uses RedomX to transpile HTML-like string into Redom code.

import { transform } from 'redomx';
const source = '<div>Hello, World!</div>';
const result = transform(source, { filename: 'example.html' });
console.log(result);