Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1006 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 1006 Bytes

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 */