Python bindings to the oxc transformer.
For the esbuild
equivalent, see esbuild-py.
from oxc_py import transform
jsx = """
import * as React from 'react'
import * as ReactDOM from 'react-dom'
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
"""
print(transform(jsx))
uv venv
source .venv/bin/activate
uv sync --extra dev
uv run pytest