Skip to content

wevm/hono-jsx

Repository files navigation

hono-jsx

Fork of hono/jsx runtime exports with direct import support.

What is "direct import support"?

In the hono package, the hono/jsx/* entrypoints are exposed via package.json#exports. Unfortunately, some runtimes & bundlers (most notably Vercel Edge Functions) have poor support for package.json#exports. This fork exposes the hono/jsx/* entrypoints directly in the hono-jsx package, so that they can be imported without relying on package.json#exports.

Install

npm i hono-jsx hono

Usage

via tsconfig.json

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "hono-jsx"
  }
}

via pragma directives

/** @jsx jsx */
/** @jsxImportSource hono-jsx */

About

JSX runtime imports for Hono

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published