Fork of hono/jsx
runtime exports with direct import support.
What is "direct import support"?
In the
hono
package, thehono/jsx/*
entrypoints are exposed viapackage.json#exports
. Unfortunately, some runtimes & bundlers (most notably Vercel Edge Functions) have poor support forpackage.json#exports
. This fork exposes thehono/jsx/*
entrypoints directly in thehono-jsx
package, so that they can be imported without relying onpackage.json#exports
.
npm i hono-jsx hono
{
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "hono-jsx"
}
}
/** @jsx jsx */
/** @jsxImportSource hono-jsx */