Skip to content

jsx-runtime.ts#

View Markdown

Source

1 documented symbol. Read the signatures first, then expand each item for parameters, return types, and examples.

1 symbols 1 modules 1 examples

Reference#

modulejsx-runtimeAutomatic-runtime entry point for the static HTML JSX transform. jsxImportSource makes the compiler emit import { jsx }…

Automatic-runtime entry point for the static HTML JSX transform.

jsxImportSource makes the compiler emit import { jsx } from "<source>/jsx-runtime", so this subpath has to exist as its own module — the same symbols on the package's main entry cannot satisfy it.

View source

Examples

Example 1
{ "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "@ox-content/vite-plugin" } }

The implementation lives in ./jsx-html; this file only re-exports what the transform reaches for. Named exports only, matching React's runtime shape.

Last updated: